Skip to content

Commit

Permalink
Refactor CreateController and simplify control flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Dec 3, 2024
1 parent 74d01fc commit c8cc4e3
Show file tree
Hide file tree
Showing 11 changed files with 536 additions and 491 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import { LoginMode } from "./types";
import { CreateController } from "./CreateController";
import { CreateController } from "./create/CreateController";

const meta: Meta<typeof CreateController> = {
component: CreateController,
Expand Down Expand Up @@ -32,20 +32,20 @@ export const WithTheme: Story = {
},
};

export const WithTimeoutError: Story = {
args: {
isSlot: false,
loginMode: LoginMode.Webauthn,
onCreated: () => {},
error: new Error("The operation either timed out or was not allowed"),
},
};
// export const WithTimeoutError: Story = {
// args: {
// isSlot: false,
// loginMode: LoginMode.Webauthn,
// onCreated: () => {},
// error: new Error("The operation either timed out or was not allowed"),
// },
// };

export const WithGenericError: Story = {
args: {
isSlot: false,
loginMode: LoginMode.Webauthn,
onCreated: () => {},
error: new Error("Something went wrong"),
},
};
// export const WithGenericError: Story = {
// args: {
// isSlot: false,
// loginMode: LoginMode.Webauthn,
// onCreated: () => {},
// error: new Error("Something went wrong"),
// },
// };
Loading

0 comments on commit c8cc4e3

Please sign in to comment.