From b19e83cb6ae73d84f08976b2b82a27cbba51ae6c Mon Sep 17 00:00:00 2001 From: emyarod Date: Thu, 17 Sep 2020 10:09:39 -0500 Subject: [PATCH] docs(DataTable): remove initialRows --- .../DataTable-dynamic-content-story.js | 4 +- .../components/DataTable/stories/shared.js | 57 ------------------- 2 files changed, 2 insertions(+), 59 deletions(-) diff --git a/packages/react/src/components/DataTable/stories/dynamic-content/DataTable-dynamic-content-story.js b/packages/react/src/components/DataTable/stories/dynamic-content/DataTable-dynamic-content-story.js index 887b8d5dd805..9eaf4a940af7 100644 --- a/packages/react/src/components/DataTable/stories/dynamic-content/DataTable-dynamic-content-story.js +++ b/packages/react/src/components/DataTable/stories/dynamic-content/DataTable-dynamic-content-story.js @@ -34,7 +34,7 @@ import DataTable, { TableToolbarSearch, TableToolbarMenu, } from '../../../DataTable'; -import { batchActionClick, initialRows, headers } from '../shared'; +import { batchActionClick, rows, headers } from '../shared'; export default { title: 'DataTable/Development', @@ -48,7 +48,7 @@ export const Example = (props) => { class DynamicRows extends React.Component { state = { - rows: initialRows, + rows, headers: headers, id: 0, }; diff --git a/packages/react/src/components/DataTable/stories/shared.js b/packages/react/src/components/DataTable/stories/shared.js index 5929271a0510..2a90040a2ac8 100644 --- a/packages/react/src/components/DataTable/stories/shared.js +++ b/packages/react/src/components/DataTable/stories/shared.js @@ -64,63 +64,6 @@ export const rows = [ }, ]; -export const initialRows = [ - { - id: 'a', - name: 'Load Balancer 3', - protocol: 'HTTP', - port: 3000, - rule: 'Round robin', - attached_groups: 'Kevin’s VM Groups', - status: 'Disabled', - }, - { - id: 'b', - name: 'Load Balancer 1', - protocol: 'HTTP', - port: 443, - rule: 'Round robin', - attached_groups: 'Maureen’s VM Groups', - status: 'Starting', - }, - { - id: 'c', - name: 'Load Balancer 2', - protocol: 'HTTP', - port: 80, - rule: 'DNS delegation', - attached_groups: 'Andrew’s VM Groups', - status: 'Active', - }, - { - id: 'd', - name: 'Load Balancer 6', - protocol: 'HTTP', - port: 3000, - rule: 'Round robin', - attached_groups: 'Marc’s VM Groups', - status: 'Disabled', - }, - { - id: 'e', - name: 'Load Balancer 4', - protocol: 'HTTP', - port: 443, - rule: 'Round robin', - attached_groups: 'Mel’s VM Groups', - status: 'Starting', - }, - { - id: 'f', - name: 'Load Balancer 5', - protocol: 'HTTP', - port: 80, - rule: 'DNS delegation', - attached_groups: 'Ronja’s VM Groups', - status: 'Active', - }, -]; - export const headers = [ { key: 'name',