summaryrefslogtreecommitdiff
path: root/components/Tweaks/TagPanel.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/Tweaks/TagPanel.tsx')
-rw-r--r--components/Tweaks/TagPanel.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/Tweaks/TagPanel.tsx b/components/Tweaks/TagPanel.tsx
index 8d63c6f..58f4b7d 100644
--- a/components/Tweaks/TagPanel.tsx
+++ b/components/Tweaks/TagPanel.tsx
@@ -17,6 +17,7 @@ export const TagPanel = (props: TagPanelProps) => {
})
const currentTags = mode === 'blacklist' ? 'tagsBlacklist' : 'tagsWhitelist'
+ const name = mode === 'blacklist' ? 'blocklist' : 'allowlist'
const [selectedItems, setSelectedItems] = useState<typeof tagArray>(
filter[currentTags].map((tag) => {
return { value: tag, label: tag }
@@ -27,7 +28,7 @@ export const TagPanel = (props: TagPanelProps) => {
<CUIAutoComplete
labelStyleProps={{ fontWeight: 300, fontSize: 14 }}
items={tagArray}
- label={'Add tag to ' + mode}
+ label={`Add tag to ${name}`}
placeholder=" "
onCreateItem={(item) => null}
disableCreateItem={true}