Skip to content

Commit

Permalink
[@mantine/core] Alert: remove duplicate types (#2287)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuhangyeong committed Aug 31, 2022
1 parent 1e12753 commit 4f6ec09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mantine-core/src/Alert/Alert.styles.ts
Expand Up @@ -6,7 +6,7 @@ import {
MantineTheme,
} from '@mantine/styles';

type AlertVariant = 'filled' | 'outline' | 'light';
export type AlertVariant = 'filled' | 'outline' | 'light';

export interface AlertStylesParams {
color: MantineColor;
Expand Down
3 changes: 1 addition & 2 deletions src/mantine-core/src/Alert/Alert.tsx
Expand Up @@ -9,9 +9,8 @@ import {
import { useId } from '@mantine/hooks';
import { CloseButton } from '../CloseButton';
import { Box } from '../Box';
import useStyles, { AlertStylesParams } from './Alert.styles';
import useStyles, { AlertStylesParams, AlertVariant } from './Alert.styles';

export type AlertVariant = 'filled' | 'outline' | 'light';
export type AlertStylesNames = Selectors<typeof useStyles>;

export interface AlertProps
Expand Down

0 comments on commit 4f6ec09

Please sign in to comment.