-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathdummy.tsx
More file actions
41 lines (36 loc) · 1.21 KB
/
dummy.tsx
File metadata and controls
41 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export {
ActionServiceProvider,
BlueInfoCircleIcon,
GreenCheckCircleIcon,
ListPageBody,
ListPageHeader,
Overview,
PrometheusEndpoint,
RedExclamationCircleIcon,
ResourceLink,
ResourceStatus,
useK8sWatchResource,
usePrometheusPoll,
YellowExclamationTriangleIcon,
} from '@openshift-console/dynamic-plugin-sdk';
export const consoleFetchJSON = (url) => fetch(url).then((response) => response.json());
consoleFetchJSON.delete = (url) =>
fetch(url, { method: 'DELETE' }).then((response) => response.json());
consoleFetchJSON.post = (url, json) =>
fetch(url, { body: JSON.stringify(json), method: 'POST' }).then((response) => response.json());
export const ListPageFilter = () => <input data-test="name-filter-input"></input>;
export const VirtualizedTable = ({ data, Row }) => (
<table>
<tbody>
<tr data-test-rows="resource-row">
{data.map((obj, i) => (
<Row key={i} obj={obj} />
))}
</tr>
</tbody>
</table>
);
export const Timestamp = () => <div>Mock_Timestamp</div>;
export const useActivePerspective = () => ['admin'];
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const useListPageFilter = (data, _rowFilters) => [data, data, () => {}];