Skip to content

Commit

Permalink
馃拕 style: Fix variant in MaterialFileTypeIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jun 25, 2024
1 parent 449997a commit 1066729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MaterialFileTypeIcon/demos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default () => {
value: 'file',
},
variant: {
options: ['pure', 'file'],
options: ['pure', 'file', 'folder'],
value: 'pure',
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/MaterialFileTypeIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface MaterialFileTypeIconProps {
open?: boolean;
size?: number;
type?: 'file' | 'folder';
variant?: 'pure' | 'file';
variant?: 'pure' | 'file' | 'folder';
}

const MaterialFileTypeIcon = memo<MaterialFileTypeIconProps & DivProps>(
Expand Down Expand Up @@ -44,7 +44,7 @@ const MaterialFileTypeIcon = memo<MaterialFileTypeIconProps & DivProps>(
width={size}
{...rest}
>
<FileTypeIcon type={type} variant={'mono'} />
<FileTypeIcon type={variant} variant={'mono'} />
<Img
height={size / 2}
src={iconUrl}
Expand Down

0 comments on commit 1066729

Please sign in to comment.