Browse Source
* refactor: resolve circular reference of Alert * Update useMenu.tsx fix lint * Update component-token.tsx fix lint * Update index.ts fix lint * Update list.ts fix lint * Update index.ts fix lint * Update index.zh-CN.md fix lint * Update component-token.tsx fix lint * Update index.test.tsx fix lintpull/43176/head
Zack Chang
1 year ago
committed by
GitHub
3 changed files with 17 additions and 9 deletions
@ -0,0 +1,15 @@ |
|||||
|
import type { AlertProps } from './Alert'; |
||||
|
import InternalAlert from './Alert'; |
||||
|
import ErrorBoundary from './ErrorBoundary'; |
||||
|
|
||||
|
export type { AlertProps } from './Alert'; |
||||
|
|
||||
|
type CompoundedComponent = React.FC<AlertProps> & { |
||||
|
ErrorBoundary: typeof ErrorBoundary; |
||||
|
}; |
||||
|
|
||||
|
const Alert = InternalAlert as CompoundedComponent; |
||||
|
|
||||
|
Alert.ErrorBoundary = ErrorBoundary; |
||||
|
|
||||
|
export default Alert; |
Loading…
Reference in new issue