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: