icon prop fix

This commit is contained in:
Pavel Laptev 2024-08-23 16:25:32 +02:00 committed by GitButler
parent 9ffe096323
commit 681d118a1f
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@
interface Props {
fileName: string;
size: number;
size?: number;
}
const { fileName, size = 16 }: Props = $props();

View File

@ -12,6 +12,7 @@ type Story = StoryObj<typeof meta>;
export const FileIconStory: Story = {
name: 'File Icon',
args: {
fileName: 'file.txt'
fileName: 'file.txt',
size: 16
}
};