Skip to content

Commit

Permalink
fix(table-object): fix behavior type updated in Table
Browse files Browse the repository at this point in the history
  • Loading branch information
dierat committed Jun 16, 2022
1 parent 224e85f commit 5277456
Showing 1 changed file with 4 additions and 64 deletions.
68 changes: 4 additions & 64 deletions src/upcoming-components/TableObject/TableObject.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const Template: Story<Props> = (args) => (
</TableObject>
);

const OverflowLargeTemplate: Story<Props> = (args) => (
const OverflowTemplate: Story<Props> = (args) => (
<TableObject>
<TableObject.Header>
<Toolbar>
Expand All @@ -91,64 +91,7 @@ const OverflowLargeTemplate: Story<Props> = (args) => (
</TableObject.Header>
<TableObject.Body>
<Table
behavior="overflow-lg"
caption="This is a table caption and it is required"
>
<TableHeader>
<TableRow>
<TableCell as="th">Table heading</TableCell>
<TableCell as="th">Table heading</TableCell>
<TableCell as="th">Table heading</TableCell>
<TableCell as="th">Table heading</TableCell>
</TableRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell>Value</TableCell>
<TableCell>Value</TableCell>

<TableCell>Value</TableCell>
<TableCell>Value</TableCell>
</TableRow>
<TableRow>
<TableCell>Value</TableCell>
<TableCell>Value</TableCell>

<TableCell>Value</TableCell>
<TableCell>Value</TableCell>
</TableRow>
<TableRow>
<TableCell>Value</TableCell>
<TableCell>Value</TableCell>

<TableCell>Value</TableCell>
<TableCell>Value</TableCell>
</TableRow>
<TableRow>
<TableCell>Value</TableCell>
<TableCell>Value</TableCell>

<TableCell>Value</TableCell>
<TableCell>Value</TableCell>
</TableRow>
</TableBody>
</Table>
</TableObject.Body>
</TableObject>
);

const OverflowSmallTemplate: Story<Props> = (args) => (
<TableObject>
<TableObject.Header>
<Toolbar>
<ToolbarItem>
<div className="fpo">Toolbar Item</div>
</ToolbarItem>
</Toolbar>{' '}
</TableObject.Header>
<TableObject.Body>
<Table
behavior="overflow-sm"
behavior="overflow"
caption="This is a table caption and it is required"
>
<TableHeader>
Expand Down Expand Up @@ -197,8 +140,5 @@ const OverflowSmallTemplate: Story<Props> = (args) => (
export const Default = Template.bind({});
Default.args = {};

export const OverflowLarge = OverflowLargeTemplate.bind({});
OverflowLarge.args = {};

export const OverflowSmall = OverflowSmallTemplate.bind({});
OverflowSmall.args = {};
export const Overflow = OverflowTemplate.bind({});
Overflow.args = {};

0 comments on commit 5277456

Please sign in to comment.