Show Monitoring app under "utilities", and fix its icon in "apps" and "user roles" screens
This commit is contained in:
parent
86192f28fd
commit
aea093332b
9 changed files with 73 additions and 53 deletions
|
|
@ -5,7 +5,6 @@ import { SearchIcon } from '@heroicons/react/solid';
|
|||
import { showToast, ToastType } from 'src/common/util/show-toast';
|
||||
import _, { debounce } from 'lodash';
|
||||
import { Table } from 'src/components';
|
||||
import { appAccessList } from 'src/components/UserModal/consts';
|
||||
import { App, AppStatus, useApps } from 'src/services/apps';
|
||||
import { AppInstallModal } from './components';
|
||||
import { getConstForStatus } from './consts';
|
||||
|
|
@ -40,11 +39,10 @@ export const Apps: React.FC = () => {
|
|||
accessor: 'name',
|
||||
Cell: (e: any) => {
|
||||
const app = e.cell.row.original as App;
|
||||
const imageSrc = _.find(appAccessList, { name: app.slug })?.image;
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
<div className="flex-shrink-0 h-10 w-10">
|
||||
<img className="h-10 w-10 rounded-md overflow-hidden" src={imageSrc} alt={app.name} />
|
||||
<img className="h-10 w-10 rounded-md overflow-hidden" src={app.assetSrc} alt={app.name} />
|
||||
</div>
|
||||
<div className="ml-4">
|
||||
<div className="text-sm font-medium text-gray-900">{app.name}</div>
|
||||
|
|
|
|||
Reference in a new issue