From 343ab5a64440a3a53c98ee472dbfb65abcb7673f Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 15 Aug 2024 12:59:52 +0200 Subject: [PATCH] improve meta reset button #2113 --- src/renderer/src/components/TagEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/TagEditor.tsx b/src/renderer/src/components/TagEditor.tsx index a7ef931a..baa6d55a 100644 --- a/src/renderer/src/components/TagEditor.tsx +++ b/src/renderer/src/components/TagEditor.tsx @@ -1,6 +1,6 @@ import { memo, useRef, useState, useMemo, useCallback, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; -import { TextInput, TrashIcon, TickIcon, EditIcon, PlusIcon, Button, IconButton } from 'evergreen-ui'; +import { TextInput, TrashIcon, ResetIcon, TickIcon, EditIcon, PlusIcon, Button, IconButton } from 'evergreen-ui'; import invariant from 'tiny-invariant'; import { askForMetadataKey } from '../dialogs'; @@ -116,7 +116,7 @@ function TagEditor({ existingTags = emptyObject, customTags = emptyObject, editi {mergedTags[tag] ? String(mergedTags[tag]) : `<${t('empty')}>`} )} {(editingTag == null || editingThis) && onEditClick(tag)} intent={editingThis ? 'success' : 'none'} />} - {editingThis && } + {editingThis && } );