Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Feb 15, 2024
1 parent df069b8 commit 6ac9f6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/canyon-platform/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
},
"settings": {
"desc": "设置您的账户信息",
"preference": "偏好",
"user_auth_tokens": "用户授权令牌",
"copied_to_clipboard": "已复制到剪贴板"
},
Expand All @@ -45,6 +46,9 @@
"detail": "详情",
"delete": "删除",
"language": "语言",
"theme": "主题",
"light": "明亮",
"dark": "黑暗",
"confirm": "确认",
"cancel": "取消",
"copy": "复制",
Expand Down
2 changes: 1 addition & 1 deletion packages/canyon-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"react-router-dom": "^6.21.3",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"vite": "^5.1.2",
"vite-plugin-pages": "^0.32.0",
"vite-plugin-svgr": "^4.2.0"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/canyon-platform/src/pages/index/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const Settings = () => {
<span>{t('menus.settings')}</span>
</Title>

<Card title='Preference'>
<Card title={t('settings.preference')}>
<Card.Grid hoverable={false} style={gridStyle}>
<div className={'flex'}>
<div className={'w-1/2'}>Language</div>
<div className={'w-1/2'}>{t('common.language')}</div>

<div className={'w-1/2'}>
<Select
Expand All @@ -45,7 +45,7 @@ const Settings = () => {

<Card.Grid hoverable={false} style={gridStyle}>
<div className={'flex'}>
<div className={'w-1/2'}>Theme</div>
<div className={'w-1/2'}>{t('common.theme')}</div>

<div className={'w-1/2'}>
<Select
Expand All @@ -56,11 +56,11 @@ const Settings = () => {
}}
options={[
{
label: 'Light',
label: t('common.light'),
value: 'light',
},
{
label: 'Dark',
label: t('common.dark'),
value: 'dark',
},
]}
Expand Down

0 comments on commit 6ac9f6d

Please sign in to comment.