1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

apm: remove chip from searchitem

This commit is contained in:
Marc Bernard 2024-07-17 11:35:02 -04:00
parent a985ddc246
commit 39f71f5d7d

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