Unverified Commit 7f30e2e6 authored by 远浅's avatar 远浅 Committed by GitHub

chore: fix typo (#1355)

parent 29f784cc
...@@ -15,11 +15,11 @@ const AppearanceSelect: FC<Props> = (props: Props) => { ...@@ -15,11 +15,11 @@ const AppearanceSelect: FC<Props> = (props: Props) => {
const { onChange, value, className } = props; const { onChange, value, className } = props;
const { t } = useTranslation(); const { t } = useTranslation();
const getPrefixIcon = (apperance: Appearance) => { const getPrefixIcon = (appearance: Appearance) => {
const className = "w-4 h-auto"; const className = "w-4 h-auto";
if (apperance === "light") { if (appearance === "light") {
return <Icon.Sun className={className} />; return <Icon.Sun className={className} />;
} else if (apperance === "dark") { } else if (appearance === "dark") {
return <Icon.Moon className={className} />; return <Icon.Moon className={className} />;
} else { } else {
return <Icon.Smile className={className} />; return <Icon.Smile className={className} />;
...@@ -43,7 +43,7 @@ const AppearanceSelect: FC<Props> = (props: Props) => { ...@@ -43,7 +43,7 @@ const AppearanceSelect: FC<Props> = (props: Props) => {
> >
{appearanceList.map((item) => ( {appearanceList.map((item) => (
<Option key={item} value={item} className="whitespace-nowrap"> <Option key={item} value={item} className="whitespace-nowrap">
{t(`setting.apperance-option.${item}`)} {t(`setting.appearance-option.${item}`)}
</Option> </Option>
))} ))}
</Select> </Select>
......
...@@ -101,7 +101,7 @@ const PreferencesSection = () => { ...@@ -101,7 +101,7 @@ const PreferencesSection = () => {
const handleDeleteUserClick = (user: User) => { const handleDeleteUserClick = (user: User) => {
showCommonDialog({ showCommonDialog({
title: `Delete Member`, title: `Delete Member`,
content: `Are you sure to delete ${user.username}? THIS ACTION IS IRREVERSIABLE.❗️`, content: `Are you sure to delete ${user.username}? THIS ACTION IS IRREVERSIBLE.❗️`,
style: "warning", style: "warning",
dialogName: "delete-user-dialog", dialogName: "delete-user-dialog",
onConfirm: async () => { onConfirm: async () => {
......
...@@ -24,7 +24,7 @@ const SSOSection = () => { ...@@ -24,7 +24,7 @@ const SSOSection = () => {
const handleDeleteIdentityProvider = async (identityProvider: IdentityProvider) => { const handleDeleteIdentityProvider = async (identityProvider: IdentityProvider) => {
showCommonDialog({ showCommonDialog({
title: "Confirm delete", title: "Confirm delete",
content: "Are you sure to delete this SSO? THIS ACTION IS IRREVERSIABLE❗", content: "Are you sure to delete this SSO? THIS ACTION IS IRREVERSIBLE❗",
style: "warning", style: "warning",
dialogName: "delete-identity-provider-dialog", dialogName: "delete-identity-provider-dialog",
onConfirm: async () => { onConfirm: async () => {
......
This diff is collapsed.
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
"additional-style-placeholder": "Additional CSS code", "additional-style-placeholder": "Additional CSS code",
"additional-script-placeholder": "Additional JavaScript code" "additional-script-placeholder": "Additional JavaScript code"
}, },
"apperance-option": { "appearance-option": {
"system": "Follow system", "system": "Follow system",
"light": "Always light", "light": "Always light",
"dark": "Always dark" "dark": "Always dark"
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
"additional-script-placeholder": "Ek JavaScript", "additional-script-placeholder": "Ek JavaScript",
"disable-public-memos": "Halka açık notları devre dışı bırak" "disable-public-memos": "Halka açık notları devre dışı bırak"
}, },
"apperance-option": { "appearance-option": {
"system": "Otomatik", "system": "Otomatik",
"light": "Her zaman açık renkli", "light": "Her zaman açık renkli",
"dark": "Her zaman koyu renkli" "dark": "Her zaman koyu renkli"
......
This diff is collapsed.
This diff is collapsed.
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
"additional-script-placeholder": "自定義 JavaScript 代碼", "additional-script-placeholder": "自定義 JavaScript 代碼",
"disable-public-memos": "禁用公共memos" "disable-public-memos": "禁用公共memos"
}, },
"apperance-option": { "appearance-option": {
"system": "跟隨系統", "system": "跟隨系統",
"light": "總是淺色", "light": "總是淺色",
"dark": "總是深色" "dark": "總是深色"
......
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
"additional-script-placeholder": "自定义 JavaScript 代码", "additional-script-placeholder": "自定义 JavaScript 代码",
"disable-public-memos": "禁用公共memos" "disable-public-memos": "禁用公共memos"
}, },
"apperance-option": { "appearance-option": {
"system": "跟随系统", "system": "跟随系统",
"light": "总是浅色", "light": "总是浅色",
"dark": "总是深色" "dark": "总是深色"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment