Skip to content

Commit

Permalink
fix story
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Nov 25, 2024
1 parent c22f9b3 commit d87279d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/ui/pages/myFiles/ShareFile/ShareDialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type Story = StoryObj<typeof meta>;

export const Public: Story = {
args: {
onRequestUrl: action("onRequestUrl"),
isOpen: true,
onClose: action("onClose"),
isPublic: true,
Expand All @@ -33,6 +34,7 @@ export const Public: Story = {

export const Private = {
args: {
onRequestUrl: action("onRequestUrl"),
isOpen: true,
isPublic: false,
onClose: action("onClose"),
Expand All @@ -49,8 +51,7 @@ export const Private = {
url: undefined,
isRequestingUrl: false,
validityDurationSecondOptions: [3600, 7200, 10800],
validityDurationSecond: 3600,
onRequestUrl: action("onRequestUrl")
validityDurationSecond: 3600
},
render: () => {
const [url, setUrl] = useState<string | undefined>(undefined);
Expand Down

0 comments on commit d87279d

Please sign in to comment.