Skip to content

Commit

Permalink
chore: add story for RestoreVaultPage component
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Jun 12, 2024
1 parent 5988cc5 commit 47915a4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions ui/pages/keychains/restore-vault.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import { Provider } from 'react-redux';
import configureStore from 'redux-mock-store';
import RestoreVaultPage from './restore-vault';

const mockStore = configureStore([]);
const store = mockStore({
appState: {
isLoading: false,
},
});

const meta: Meta<typeof RestoreVaultPage> = {
title: 'Pages/Keychains/RestoreVaultPage',
component: RestoreVaultPage,
decorators: [(Story) => <Provider store={store}><Story /></Provider>],
argTypes: {
createNewVaultAndRestore: { action: 'createNewVaultAndRestore' },
leaveImportSeedScreenState: { action: 'leaveImportSeedScreenState' },
history: { control: 'object' },
isLoading: { control: 'boolean' },
},
args: {
createNewVaultAndRestore: () => {},
leaveImportSeedScreenState: () => {},
history: { push: () => {} },
isLoading: false,
},
};

export default meta;
type Story = StoryObj<typeof RestoreVaultPage>;

export const DefaultStory: Story = {};

DefaultStory.storyName = 'Default';

0 comments on commit 47915a4

Please sign in to comment.