Skip to content

Commit

Permalink
docs(DataTable): remove initialRows
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Sep 16, 2020
1 parent 24e9a29 commit 85d2ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -48,7 +48,7 @@ export const Example = (props) => {

class DynamicRows extends React.Component {
state = {
rows: initialRows,
rows,
headers: headers,
id: 0,
};
Expand Down
57 changes: 0 additions & 57 deletions packages/react/src/components/DataTable/stories/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 85d2ab2

Please sign in to comment.