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) => {
const { onChange, value, className } = props;
const { t } = useTranslation();
const getPrefixIcon = (apperance: Appearance) => {
const getPrefixIcon = (appearance: Appearance) => {
const className = "w-4 h-auto";
if (apperance === "light") {
if (appearance === "light") {
return <Icon.Sun className={className} />;
} else if (apperance === "dark") {
} else if (appearance === "dark") {
return <Icon.Moon className={className} />;
} else {
return <Icon.Smile className={className} />;
......@@ -43,7 +43,7 @@ const AppearanceSelect: FC<Props> = (props: Props) => {
>
{appearanceList.map((item) => (
<Option key={item} value={item} className="whitespace-nowrap">
{t(`setting.apperance-option.${item}`)}
{t(`setting.appearance-option.${item}`)}
</Option>
))}
</Select>
......
......@@ -101,7 +101,7 @@ const PreferencesSection = () => {
const handleDeleteUserClick = (user: User) => {
showCommonDialog({
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",
dialogName: "delete-user-dialog",
onConfirm: async () => {
......
......@@ -24,7 +24,7 @@ const SSOSection = () => {
const handleDeleteIdentityProvider = async (identityProvider: IdentityProvider) => {
showCommonDialog({
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",
dialogName: "delete-identity-provider-dialog",
onConfirm: async () => {
......
This diff is collapsed.
......@@ -196,7 +196,7 @@
"additional-style-placeholder": "Additional CSS code",
"additional-script-placeholder": "Additional JavaScript code"
},
"apperance-option": {
"appearance-option": {
"system": "Follow system",
"light": "Always light",
"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 @@
"additional-script-placeholder": "Ek JavaScript",
"disable-public-memos": "Halka açık notları devre dışı bırak"
},
"apperance-option": {
"appearance-option": {
"system": "Otomatik",
"light": "Her zaman açık renkli",
"dark": "Her zaman koyu renkli"
......
This diff is collapsed.
This diff is collapsed.
......@@ -195,7 +195,7 @@
"additional-script-placeholder": "自定義 JavaScript 代碼",
"disable-public-memos": "禁用公共memos"
},
"apperance-option": {
"appearance-option": {
"system": "跟隨系統",
"light": "總是淺色",
"dark": "總是深色"
......
......@@ -195,7 +195,7 @@
"additional-script-placeholder": "自定义 JavaScript 代码",
"disable-public-memos": "禁用公共memos"
},
"apperance-option": {
"appearance-option": {
"system": "跟随系统",
"light": "总是浅色",
"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