Skip to content

Commit 4c2827a

Browse files
committed
fix(samples): use new alert type names
1 parent 6c97d8e commit 4c2827a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/samples/react/src/components/alert/basic.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import React from 'react';
22
import { KolAlert } from '@public-ui/react';
33
import 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';
55
import { SampleDescription } from '../SampleDescription';
66

77
type PropsByType = {
88
level: HeadingLevel;
9-
type: AlertType;
10-
variant: AlertVariant;
9+
type: AlertTypePropType;
10+
variant: AlertVariantPropType;
1111
};
1212
type PropsBasic = {
13-
variant?: AlertVariant;
13+
variant?: AlertVariantPropType;
1414
};
1515

1616
const AlertByType: FC<PropsByType> = ({ level, type, variant }) => (

packages/samples/react/src/components/toast/basic.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useSearchParams } from 'react-router-dom';
33

44
import { ToasterService } from '@public-ui/components';
55
import { 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

88
import { getRoot } from '../../shares/react-roots';
99
import { SampleDescription } from '../SampleDescription';
@@ -12,8 +12,8 @@ import type { FC } from 'react';
1212

1313
export 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({

0 commit comments

Comments
 (0)