File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/samples/react/src/components Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { KolAlert } from '@public-ui/react' ;
33import type { FC } from 'react' ;
4- import type { AlertTypePropType as AlertType , AlertVariantPropType as AlertVariant , HeadingLevel } from '@public-ui/components' ;
4+ import type { AlertTypePropType , AlertVariantPropType , HeadingLevel } from '@public-ui/components' ;
55import { SampleDescription } from '../SampleDescription' ;
66
77type PropsByType = {
88 level : HeadingLevel ;
9- type : AlertType ;
10- variant : AlertVariant ;
9+ type : AlertTypePropType ;
10+ variant : AlertVariantPropType ;
1111} ;
1212type PropsBasic = {
13- variant ?: AlertVariant ;
13+ variant ?: AlertVariantPropType ;
1414} ;
1515
1616const AlertByType : FC < PropsByType > = ( { level, type, variant } ) => (
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useSearchParams } from 'react-router-dom';
33
44import { ToasterService } from '@public-ui/components' ;
55import { KolButton } from '@public-ui/react' ;
6- import type { AlertTypePropType as AlertType , AlertVariantPropType as AlertVariant } from '@public-ui/components' ;
6+ import type { AlertTypePropType , AlertVariantPropType } from '@public-ui/components' ;
77
88import { getRoot } from '../../shares/react-roots' ;
99import { SampleDescription } from '../SampleDescription' ;
@@ -12,8 +12,8 @@ import type { FC } from 'react';
1212
1313export const ToastBasic : FC = ( ) => {
1414 const [ searchParams ] = useSearchParams ( ) ;
15- const defaultType = searchParams . get ( 'type' ) as AlertType ;
16- const defaultVariant = searchParams . get ( 'variant' ) as AlertVariant ;
15+ const defaultType = searchParams . get ( 'type' ) as AlertTypePropType ;
16+ const defaultVariant = searchParams . get ( 'variant' ) as AlertVariantPropType ;
1717 const toaster = ToasterService . getInstance ( document ) ;
1818 const handleButtonClickSimple = ( ) => {
1919 void toaster . enqueue ( {
You can’t perform that action at this time.
0 commit comments