Skip to content

Commit

Permalink
Removed GitHub column from all the tables (opensearch-project#371)
Browse files Browse the repository at this point in the history
Signed-off-by: AbhishekReddy1127 <[email protected]>
  • Loading branch information
AbhishekReddy1127 authored and AMoo-Miki committed Jul 2, 2023
1 parent 4731809 commit fa44b9b
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 78 deletions.
16 changes: 1 addition & 15 deletions src-docs/src/views/tables/in_memory/in_memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
import React from 'react';
import { formatDate } from '../../../../../src/services/format';
import { createDataStore } from '../data_store';
import {
OuiInMemoryTable,
OuiLink,
OuiHealth,
} from '../../../../../src/components';
import { OuiInMemoryTable, OuiHealth } from '../../../../../src/components';

/*
Example user object:
Expand All @@ -25,7 +21,6 @@ Example user object:
id: '1',
firstName: 'john',
lastName: 'doe',
github: 'johndoe',
dateOfBirth: Date.now(),
nationality: 'NL',
online: true
Expand Down Expand Up @@ -55,15 +50,6 @@ export const Table = () => {
name: 'Last Name',
truncateText: true,
},
{
field: 'github',
name: 'Github',
render: (username) => (
<OuiLink href="https://oui.opensearch.org/latest/" target="_blank">
{username}
</OuiLink>
),
},
{
field: 'dateOfBirth',
name: 'Date of Birth',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
import React, { useEffect, useState } from 'react';
import { formatDate } from '../../../../../src/services/format';
import { createDataStore } from '../data_store';
import {
OuiInMemoryTable,
OuiLink,
OuiHealth,
} from '../../../../../src/components';
import { OuiInMemoryTable, OuiHealth } from '../../../../../src/components';

/*
Example user object:
Expand All @@ -25,7 +21,6 @@ Example user object:
id: '1',
firstName: 'john',
lastName: 'doe',
github: 'johndoe',
dateOfBirth: Date.now(),
nationality: 'NL',
online: true
Expand Down Expand Up @@ -55,15 +50,6 @@ export const Table = () => {
name: 'Last Name',
truncateText: true,
},
{
field: 'github',
name: 'Github',
render: (username) => (
<OuiLink href="https://oui.opensearch.org/latest/" target="_blank">
{username}
</OuiLink>
),
},
{
field: 'dateOfBirth',
name: 'Date of Birth',
Expand Down
11 changes: 0 additions & 11 deletions src-docs/src/views/tables/in_memory/in_memory_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { formatDate } from '../../../../../src/services/format';
import { createDataStore } from '../data_store';
import {
OuiInMemoryTable,
OuiLink,
OuiHealth,
OuiSpacer,
OuiSwitch,
Expand All @@ -31,7 +30,6 @@ Example user object:
id: '1',
firstName: 'john',
lastName: 'doe',
github: 'johndoe',
dateOfBirth: Date.now(),
nationality: 'NL',
online: true
Expand Down Expand Up @@ -65,15 +63,6 @@ export const Table = () => {
name: 'Last Name',
truncateText: true,
},
{
field: 'github',
name: 'Github',
render: (username) => (
<OuiLink href="https://oui.opensearch.org/latest/" target="_blank">
{username}
</OuiLink>
),
},
{
field: 'dateOfBirth',
name: 'Date of Birth',
Expand Down
16 changes: 1 addition & 15 deletions src-docs/src/views/tables/in_memory/in_memory_search_callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
import React, { useState } from 'react';
import { formatDate } from '../../../../../src/services/format';
import { createDataStore } from '../data_store';
import {
OuiInMemoryTable,
OuiLink,
OuiHealth,
} from '../../../../../src/components';
import { OuiInMemoryTable, OuiHealth } from '../../../../../src/components';

/*
Example user object:
Expand All @@ -25,7 +21,6 @@ Example user object:
id: '1',
firstName: 'john',
lastName: 'doe',
github: 'johndoe',
dateOfBirth: Date.now(),
nationality: 'NL',
online: true
Expand Down Expand Up @@ -91,15 +86,6 @@ export const Table = () => {
name: 'Last Name',
truncateText: true,
},
{
field: 'github',
name: 'Github',
render: (username) => (
<OuiLink href="https://oui.opensearch.org/latest/" target="_blank">
{username}
</OuiLink>
),
},
{
field: 'dateOfBirth',
name: 'Date of Birth',
Expand Down
11 changes: 0 additions & 11 deletions src-docs/src/views/tables/in_memory/in_memory_search_external.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { formatDate } from '../../../../../src/services/format';
import { createDataStore } from '../data_store';
import {
OuiInMemoryTable,
OuiLink,
OuiHealth,
OuiFlexGroup,
OuiFlexItem,
Expand All @@ -29,7 +28,6 @@ Example user object:
id: '1',
firstName: 'john',
lastName: 'doe',
github: 'johndoe',
dateOfBirth: Date.now(),
nationality: 'NL',
online: true
Expand Down Expand Up @@ -62,15 +60,6 @@ export const Table = () => {
name: 'Last Name',
truncateText: true,
},
{
field: 'github',
name: 'Github',
render: (username) => (
<OuiLink href="https://oui.opensearch.org/latest/" target="_blank">
{username}
</OuiLink>
),
},
{
field: 'dateOfBirth',
name: 'Date of Birth',
Expand Down
11 changes: 0 additions & 11 deletions src-docs/src/views/tables/in_memory/in_memory_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import React, { useState, Fragment, useRef } from 'react';
import { formatDate } from '../../../../../src/services/format';
import { createDataStore } from '../data_store';
import {
OuiLink,
OuiHealth,
OuiButton,
OuiInMemoryTable,
Expand All @@ -31,7 +30,6 @@ Example user object:
id: '1',
firstName: 'john',
lastName: 'doe',
github: 'johndoe',
dateOfBirth: Date.now(),
nationality: 'NL',
online: true
Expand Down Expand Up @@ -154,15 +152,6 @@ export const Table = () => {
name: 'Last Name',
truncateText: true,
},
{
field: 'github',
name: 'Github',
render: (username) => (
<OuiLink href="https://oui.opensearch.org/latest/" target="_blank">
{username}
</OuiLink>
),
},
{
field: 'dateOfBirth',
name: 'Date of Birth',
Expand Down

0 comments on commit fa44b9b

Please sign in to comment.