apm: remove chip from searchitem

This commit is contained in:
Marc Bernard 2024-07-17 11:35:02 -04:00
parent a985ddc246
commit 39f71f5d7d
1 changed files with 35 additions and 31 deletions

View File

@ -9,6 +9,7 @@ import Stack from '@mui/material/Stack';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { useConfig } from '../../';
import { cleanDescription } from './utils';
type SearchItemProps = {
@ -74,6 +75,7 @@ const SearchItem: React.FC<SearchItemProps> = ({
...props
}) => {
const { t } = useTranslation();
const { configOptions } = useConfig();
const handleDelete = () => {
// no action assigned by default
};
@ -87,6 +89,7 @@ const SearchItem: React.FC<SearchItemProps> = ({
</NameGroup>
{version && <Version>{version}</Version>}
</Wrapper>
{configOptions?.showUplinks && (
<Wrapper>
<Stack direction="row" spacing={1}>
{isPrivate && (
@ -118,6 +121,7 @@ const SearchItem: React.FC<SearchItemProps> = ({
)}
</Stack>
</Wrapper>
)}
</li>
);
};