Skip to content

Commit 262cd5a

Browse files
authored
fix: change external black/whitelist names (#165) (#171)
1 parent 9fcc9a8 commit 262cd5a

File tree

4 files changed

+10509
-73
lines changed

4 files changed

+10509
-73
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
uses: 'actions/checkout@v2'
3737
with:
3838
repository: '${{ github.repository }}'
39+
- name: '[setup node]'
40+
uses: 'actions/setup-node@v2'
41+
with:
42+
node-version: '16'
3943
- name: '[lint]'
4044
run: |
4145
echo TBA some linting

components/TagMenu.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const TagMenu = (props: TagMenuProps) => {
111111
}}
112112
icon={blacklist ? <MinusIcon /> : <ViewOffIcon />}
113113
>
114-
{blacklist ? 'Remove from blacklist' : 'Add to blacklist'}
114+
{blacklist ? 'Remove from blocklist' : 'Add to blocklist'}
115115
</MenuItem>
116116
)}
117117
{!blacklist && (
@@ -131,7 +131,7 @@ export const TagMenu = (props: TagMenuProps) => {
131131
}}
132132
icon={whitelist ? <MinusIcon /> : <ViewIcon />}
133133
>
134-
{whitelist ? 'Remove from whitelist' : 'Add to whitelist'}
134+
{whitelist ? 'Remove from allowlist' : 'Add to allowlist'}
135135
</MenuItem>
136136
)}
137137
</>

components/Tweaks/TagPanel.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const TagPanel = (props: TagPanelProps) => {
1717
})
1818

1919
const currentTags = mode === 'blacklist' ? 'tagsBlacklist' : 'tagsWhitelist'
20+
const name = mode === 'blacklist' ? 'blocklist' : 'allowlist'
2021
const [selectedItems, setSelectedItems] = useState<typeof tagArray>(
2122
filter[currentTags].map((tag) => {
2223
return { value: tag, label: tag }
@@ -27,7 +28,7 @@ export const TagPanel = (props: TagPanelProps) => {
2728
<CUIAutoComplete
2829
labelStyleProps={{ fontWeight: 300, fontSize: 14 }}
2930
items={tagArray}
30-
label={'Add tag to ' + mode}
31+
label={`Add tag to ${name}`}
3132
placeholder=" "
3233
onCreateItem={(item) => null}
3334
disableCreateItem={true}

0 commit comments

Comments
 (0)