Skip to content

Commit 8ed1214

Browse files
committed
fix file preview story
1 parent e3d9a1c commit 8ed1214

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/uui-file-preview/lib/uui-file-preview.story.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import '@umbraco-ui/uui-action-bar/lib';
33
import '@umbraco-ui/uui-button/lib';
44
import '@umbraco-ui/uui-icon-registry-essential/lib';
55
import '@umbraco-ui/uui-icon/lib';
6+
import '@umbraco-ui/uui-symbol-file-thumbnail/lib';
7+
import '@umbraco-ui/uui-symbol-folder/lib';
8+
import '@umbraco-ui/uui-symbol-file/lib';
69

7-
import { Story } from '@storybook/web-components';
10+
import { StoryFn } from '@storybook/web-components';
811
import { html } from 'lit';
912
import { UUIFilePreviewElement } from './uui-file-preview.element';
1013

@@ -14,7 +17,7 @@ export default {
1417
component: 'uui-file-preview',
1518
};
1619

17-
export const AAAOverview: Story = () => {
20+
export const AAAOverview: StoryFn = () => {
1821
setTimeout(() => {
1922
const file = new File(['file'], 'File 1.txt', { type: 'text/plain' });
2023
const filePreview = document.getElementById(
@@ -60,7 +63,7 @@ filePreview.file = file;
6063
},
6164
};
6265

63-
export const Image: Story = () => {
66+
export const Image: StoryFn = () => {
6467
const init = async () => {
6568
const imageUrl =
6669
'https://images.unsplash.com/photo-1650346910623-3a0d9ee1f2ae?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2371&q=80';

0 commit comments

Comments
 (0)