fix: visibility translation (#2429)

* fix: visibility translation

* refactor: remove useless file

* feat: add visibility icon
This commit is contained in:
Zexi
2023-10-23 08:06:59 +08:00
committed by GitHub
parent 82effea070
commit 035d71e07c
7 changed files with 10 additions and 227 deletions

View File

@ -462,8 +462,8 @@ const MemoEditor = (props: Props) => {
}}
>
{VISIBILITY_SELECTOR_ITEMS.map((item) => (
<Option key={item.value} value={item.value} className="whitespace-nowrap">
{item.text}
<Option key={item} value={item} className="whitespace-nowrap">
{t(`memo.visibility.${item.toLowerCase() as Lowercase<typeof item>}`)}
</Option>
))}
</Select>