From 9bb54bce00a60845a19c88c676cb55c0c2647cb9 Mon Sep 17 00:00:00 2001 From: Davor Date: Mon, 25 Jul 2022 20:23:50 +0200 Subject: [PATCH] modify apps table --- src/modules/apps/Apps.tsx | 12 +------ src/modules/apps/consts.tsx | 65 +++++++++++++++++++++++++++++++------ 2 files changed, 56 insertions(+), 21 deletions(-) diff --git a/src/modules/apps/Apps.tsx b/src/modules/apps/Apps.tsx index f29b377..71594a2 100644 --- a/src/modules/apps/Apps.tsx +++ b/src/modules/apps/Apps.tsx @@ -1,6 +1,6 @@ /* eslint-disable react-hooks/exhaustive-deps */ import React, { useState, useCallback, useMemo } from 'react'; -import { SearchIcon, PlusIcon } from '@heroicons/react/solid'; +import { SearchIcon } from '@heroicons/react/solid'; import { Table } from 'src/components'; import { columns, data } from './consts'; @@ -20,16 +20,6 @@ export const Apps: React.FC = () => {

Apps

- -
- -
diff --git a/src/modules/apps/consts.tsx b/src/modules/apps/consts.tsx index 0930407..7f58f33 100644 --- a/src/modules/apps/consts.tsx +++ b/src/modules/apps/consts.tsx @@ -1,5 +1,6 @@ import React from 'react'; -import { CogIcon } from '@heroicons/react/outline'; +import { CogIcon, PlusCircleIcon } from '@heroicons/react/outline'; +import _ from 'lodash'; export const initialEditorYaml = () => { return `luck: except @@ -25,6 +26,38 @@ search: great: stomach`; }; +export enum AppStatus { + NotInstalled = 'Not installed', + Installed = 'Installed', + Installing = 'Installing', +} + +const tableConsts = [ + { + status: AppStatus.Installed, + colorClass: 'green-600', + buttonTitle: 'Configure', + buttonIcon: