fix: storage api alignment
This commit is contained in:
@@ -6,7 +6,6 @@ import styled from 'styled-components';
|
||||
import PageBox from '../_components/page-box';
|
||||
import Appearance from './components/appearance';
|
||||
import ModifyPasswordn from './components/modify-password';
|
||||
import PublicKey from './components/public-key';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
.ant-page-header-heading {
|
||||
@@ -27,11 +26,6 @@ const Profile: React.FC = () => {
|
||||
const items: TabsProps['items'] = useMemo(() => {
|
||||
if (initialState?.currentUser?.source !== 'Local') {
|
||||
return [
|
||||
{
|
||||
key: 'public-key',
|
||||
label: 'SSH Public Key',
|
||||
children: <PublicKey />
|
||||
},
|
||||
{
|
||||
key: 'appearance',
|
||||
label: intl.formatMessage({ id: 'common.appearance' }),
|
||||
@@ -45,11 +39,6 @@ const Profile: React.FC = () => {
|
||||
label: intl.formatMessage({ id: 'users.form.updatepassword' }),
|
||||
children: <ModifyPasswordn />
|
||||
},
|
||||
{
|
||||
key: 'public-key',
|
||||
label: 'SSH 公钥',
|
||||
children: <PublicKey />
|
||||
},
|
||||
{
|
||||
key: 'appearance',
|
||||
label: intl.formatMessage({ id: 'common.appearance' }),
|
||||
|
||||
Reference in New Issue
Block a user