Removed conept on short URL tags

This commit is contained in:
Alejandro Celaya 2022-12-18 13:29:39 +01:00
parent 187fee46f4
commit 99485cc6d8
2 changed files with 3 additions and 4 deletions

View file

@ -67,7 +67,7 @@ export const ShortUrlsRow = (
</td> </td>
)} )}
<td className="responsive-table__cell short-urls-row__cell" data-th="Tags"> <td className="responsive-table__cell short-urls-row__cell" data-th="Tags">
<Tags tags={shortUrl.tags} colorGenerator={colorGenerator} onTagClick={onTagClick} disabled={isDisabled} /> <Tags tags={shortUrl.tags} colorGenerator={colorGenerator} onTagClick={onTagClick} />
</td> </td>
<td className="responsive-table__cell short-urls-row__cell text-lg-end" data-th="Visits"> <td className="responsive-table__cell short-urls-row__cell text-lg-end" data-th="Visits">
<ShortUrlVisitsCount <ShortUrlVisitsCount

View file

@ -7,12 +7,11 @@ interface TagsProps {
tags: string[]; tags: string[];
onTagClick?: (tag: string) => void; onTagClick?: (tag: string) => void;
colorGenerator: ColorGenerator; colorGenerator: ColorGenerator;
disabled?: boolean;
} }
export const Tags: FC<TagsProps> = ({ tags, onTagClick, colorGenerator, disabled = false }) => { export const Tags: FC<TagsProps> = ({ tags, onTagClick, colorGenerator }) => {
if (isEmpty(tags)) { if (isEmpty(tags)) {
return disabled ? null : <i className="indivisible"><small>No tags</small></i>; return <i className="indivisible"><small>No tags</small></i>;
} }
return ( return (