Skip to content

Commit

Permalink
Add storybook test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomtrp committed May 31, 2024
1 parent 0b0e35a commit ca2e6e9
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Meta, StoryObj } from '@storybook/react';

import { RecordTableEmptyState } from '@/object-record/record-table/components/RecordTableEmptyState';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';

const meta: Meta = {
title: 'Modules/ObjectRecord/RecordTable/RecordTableEmptyState',
component: RecordTableEmptyState,
decorators: [MemoryRouterDecorator],
};

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

export const Default: Story = {
args: {
objectLabel: 'person',
isRemote: false,
createRecord: () => {},
},
};

export const Remote: Story = {
args: {
objectLabel: 'remote person',
isRemote: true,
createRecord: () => {},
},
};

0 comments on commit ca2e6e9

Please sign in to comment.