From b50dcfb72b10c9efe12e64164173e0616371e12e Mon Sep 17 00:00:00 2001 From: dengfuping Date: Wed, 6 Sep 2023 11:06:59 +0800 Subject: [PATCH] fix(ci): test and build site fail --- .dumi/pages/index/components/SiteContext.ts | 2 +- .dumi/theme/slots/SiteContext.ts | 2 +- .../ui/src/Ranger/__test__/index.test.tsx | 1 - packages/ui/src/TagSelect/TagSelectContext.ts | 20 +++++++++---------- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.dumi/pages/index/components/SiteContext.ts b/.dumi/pages/index/components/SiteContext.ts index 9767a89b5..d41e57d9c 100644 --- a/.dumi/pages/index/components/SiteContext.ts +++ b/.dumi/pages/index/components/SiteContext.ts @@ -1,4 +1,4 @@ -import * as React from 'react'; +import React from 'react'; export interface SiteContextProps { isMobile: boolean; diff --git a/.dumi/theme/slots/SiteContext.ts b/.dumi/theme/slots/SiteContext.ts index 70bdb9e72..f159f106b 100644 --- a/.dumi/theme/slots/SiteContext.ts +++ b/.dumi/theme/slots/SiteContext.ts @@ -1,4 +1,4 @@ -import * as React from 'react'; +import React from 'react'; import type { DirectionType } from '@oceanbase/design/es/config-provider'; import type { ThemeName } from '../common/ThemeSwitch'; diff --git a/packages/ui/src/Ranger/__test__/index.test.tsx b/packages/ui/src/Ranger/__test__/index.test.tsx index 8515f3788..94521581b 100644 --- a/packages/ui/src/Ranger/__test__/index.test.tsx +++ b/packages/ui/src/Ranger/__test__/index.test.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import '@testing-library/jest-dom/extend-expect'; import { cleanup, fireEvent, render } from '@testing-library/react'; import MockDate from 'mockdate'; import moment from 'moment'; diff --git a/packages/ui/src/TagSelect/TagSelectContext.ts b/packages/ui/src/TagSelect/TagSelectContext.ts index 374d2a666..e6b3c221a 100644 --- a/packages/ui/src/TagSelect/TagSelectContext.ts +++ b/packages/ui/src/TagSelect/TagSelectContext.ts @@ -1,16 +1,16 @@ -import {createContext} from 'react'; -import type {TagSelectValueType} from './Group'; +import { createContext } from 'react'; +import type { TagSelectValueType } from './Group'; export type TagSelectContextProps = { - multiple?: boolean; - size?: string; - disabled?: boolean, - value?: Array; - onChange?: (value: Array | TagSelectValueType) => void; - registerValue?: (val: TagSelectValueType) => void; - handleValueChange?: (val: TagSelectValueType) => void; + multiple?: boolean; + size?: string; + disabled?: boolean; + value?: Array; + onChange?: (value: Array | TagSelectValueType) => void; + registerValue?: (val: TagSelectValueType) => void; + handleValueChange?: (val: TagSelectValueType) => void; }; const TagSelectContext = createContext({}); -export default TagSelectContext; \ No newline at end of file +export default TagSelectContext;