update
This commit is contained in:
@@ -62,6 +62,22 @@ export const SettingsList = () => {
|
||||
))}
|
||||
</Select>
|
||||
</div>
|
||||
) : item.name === '当前语言' ? (
|
||||
<div style={{ marginLeft: '12em' }}>
|
||||
<Select
|
||||
defaultValue="zh"
|
||||
onChange={changeLanguage}
|
||||
>
|
||||
{options.map(option => (
|
||||
<Option
|
||||
key={option.value}
|
||||
value={option.value}
|
||||
>
|
||||
{option.text}
|
||||
</Option>
|
||||
))}
|
||||
</Select>
|
||||
</div>
|
||||
) : null}
|
||||
</ListItem>
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@ export const LastModified = () => {
|
||||
<div>
|
||||
<div>
|
||||
<ContentText type="xs">
|
||||
<span>{t('stetting.Settings.Last edited by')}</span>
|
||||
<span>{t('Last edited by')}</span>
|
||||
<span>{username}</span>
|
||||
</ContentText>
|
||||
</div>
|
||||
|
||||
@@ -21,9 +21,7 @@ export const Logout = () => {
|
||||
return (
|
||||
<ListItem onClick={logout}>
|
||||
<StyledIcon />
|
||||
<ContentText type="base">
|
||||
{t('stetting.Settings.Logout')}
|
||||
</ContentText>
|
||||
<ContentText type="base">{t('Logout')}</ContentText>
|
||||
</ListItem>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ export const useSettings = (): SettingItem[] => {
|
||||
// },
|
||||
{
|
||||
type: 'button',
|
||||
name: t('Setting.Settings.Duplicate Page'),
|
||||
name: t('Duplicate Page'),
|
||||
onClick: async () => {
|
||||
const newPageInfo = await duplicatePage({
|
||||
workspaceId,
|
||||
@@ -93,7 +93,7 @@ export const useSettings = (): SettingItem[] => {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
name: t('Setting.Settings.Copy Page Link'),
|
||||
name: t('Copy Page Link'),
|
||||
onClick: () => {
|
||||
copyToClipboard(window.location.href);
|
||||
message.success('Page link copied successfully');
|
||||
@@ -101,7 +101,7 @@ export const useSettings = (): SettingItem[] => {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
name: t('Setting.Settings.Language'),
|
||||
name: t('Language'),
|
||||
onClick: () => {
|
||||
//Do noting
|
||||
},
|
||||
@@ -150,7 +150,7 @@ export const useSettings = (): SettingItem[] => {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
name: t('Setting.Settings.Clear Workspace'),
|
||||
name: t('Clear Workspace'),
|
||||
onClick: () => clearWorkspace(workspaceId),
|
||||
flag: 'booleanClearWorkspace',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user