diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 844dadca2b..206a2075b4 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -2322,7 +2322,7 @@ exports[`Storyshots Table|Table Default 1`] = ` onMouseEnter={[Function]} onMouseLeave={[Function]} > - FIRST + First Name - SECOND + Last Name + + E-Mail + -

- dddd -

+

+ Tricia +

-

- xyz -

+ McMillan + + + + + tricia@hitchhiker.com + -

- abc -

+

+ Arthur +

-

- bbbb -

+ Dent + + + + + arthur@hitchhiker.com + @@ -2390,7 +2406,7 @@ exports[`Storyshots Table|Table TextColumn 1`] = ` onMouseEnter={[Function]} onMouseLeave={[Function]} > - FIRST + Id @@ -2401,7 +2417,18 @@ exports[`Storyshots Table|Table TextColumn 1`] = ` onMouseEnter={[Function]} onMouseLeave={[Function]} > - SECOND + Name + + + + Description @@ -2411,26 +2438,35 @@ exports[`Storyshots Table|Table TextColumn 1`] = ` - d + 21 - y + Pommes + + + Fried potato sticks - a + 42 - b + Quarter-Pounder + + + Big burger - z + -84 - a + Icecream + + + Cold dessert diff --git a/scm-ui/ui-components/src/table/Table.stories.tsx b/scm-ui/ui-components/src/table/Table.stories.tsx index b29db2c965..3d2241dcba 100644 --- a/scm-ui/ui-components/src/table/Table.stories.tsx +++ b/scm-ui/ui-components/src/table/Table.stories.tsx @@ -7,15 +7,15 @@ import { ColumnProps } from "./table"; storiesOf("Table|Table", module) .add("Default", () => ( - - {(row: any) =>

{row.first}

}
+
+ {(row: any) =>

{row.firstname}

}
{ return (a: any, b: any) => { - if (a.second > b.second) { + if (a.lastname > b.lastname) { return -1; - } else if (a.second < b.second) { + } else if (a.lastname < b.lastname) { return 1; } else { return 0; @@ -23,13 +23,15 @@ storiesOf("Table|Table", module) }; }} > - {(row: any) =>

{row.second}

} + {(row: any) => {row.lastname}}
+ {(row: any) => {row.email}}
)) .add("TextColumn", () => ( - - - +
+ + +
));