All files / app/src/shared/ui/table-filters table-filters.stories.tsx

100% Statements 19/19
100% Branches 2/2
100% Functions 2/2
100% Lines 19/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 251x       1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x   1x   1x 1x  
import { Story, Meta } from '@storybook/react'
import { TableFilters, TableFiltersInterface } from './table-filters'
import { accountingObjectConnectionAtom } from '@/entities/accounting-object'
 
export default {
  title: 'Shared/TableFilters',
  component: TableFilters,
  args: {
    filters: [
      {
        label: 'CurrentFilter',
        atom: accountingObjectConnectionAtom,
        name: 'currentFilter',
        type: 'selectSearch',
      },
    ],
    t: (str: string) => str,
  },
} as Meta
 
const Template: Story<TableFiltersInterface> = args => <TableFilters {...args} />
 
export const Default = Template.bind({})
Default.args = {}