mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-11 02:15:57 -05:00
apm: remove chip from searchitem
This commit is contained in:
parent
a985ddc246
commit
39f71f5d7d
1 changed files with 35 additions and 31 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue