给userRelation的几个页面增加了PageHeader
This commit is contained in:
parent
c96b2caf56
commit
6b01e3718b
|
|
@ -31,7 +31,12 @@ export default function render(props: WebComponentProps<EntityDict, 'userRelatio
|
|||
</PageHeader>
|
||||
);
|
||||
}
|
||||
return <div className={Styles.container}>{t('tips')}</div>
|
||||
return (
|
||||
<PageHeader
|
||||
title={t('pageTitle')}>
|
||||
<div className={Styles.container}>{t('tips')}</div>
|
||||
</PageHeader>
|
||||
)
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@ import React from 'react';
|
|||
import { assert } from 'oak-domain/lib/utils/assert';
|
||||
import UserRelationUpsertByUser from 'oak-general-business/es/components/userRelation/upsert/byUser';
|
||||
import { WebComponentProps } from 'oak-frontend-base';
|
||||
import PageHeader from 'oak-frontend-base/es/components/pageHeader2';
|
||||
import { EntityDict } from '@project/oak-app-domain';
|
||||
import Styles from './web.pc.module.less';
|
||||
|
||||
|
|
@ -15,15 +16,25 @@ export default function render(props: WebComponentProps<EntityDict, 'userRelatio
|
|||
assert(oakId);
|
||||
if (entity && entityId) {
|
||||
return (
|
||||
<UserRelationUpsertByUser
|
||||
entity={entity}
|
||||
entityId={entityId}
|
||||
oakPath={`${oakFullpath}.relations`}
|
||||
oakId={oakId}
|
||||
/>
|
||||
<PageHeader
|
||||
title={t('pageTitle')}
|
||||
>
|
||||
<UserRelationUpsertByUser
|
||||
entity={entity}
|
||||
entityId={entityId}
|
||||
oakPath={`${oakFullpath}.relations`}
|
||||
oakId={oakId}
|
||||
/>
|
||||
</PageHeader>
|
||||
);
|
||||
}
|
||||
return <div className={Styles.container}>{t('tips')}</div>
|
||||
return (
|
||||
<PageHeader
|
||||
title={t('pageTitle')}
|
||||
>
|
||||
<div className={Styles.container}>{t('tips')}</div>
|
||||
</PageHeader>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
import UserRelationUpsert from 'oak-general-business/es/components/userRelation/upsert';
|
||||
import { WebComponentProps } from 'oak-frontend-base';
|
||||
import PageHeader from 'oak-frontend-base/es/components/pageHeader2';
|
||||
import { EntityDict } from '@project/oak-app-domain';
|
||||
import Styles from './web.pc.module.less';
|
||||
|
||||
|
|
@ -13,16 +14,24 @@ export default function render(props: WebComponentProps<EntityDict, 'userRelatio
|
|||
if (oakFullpath) {
|
||||
if (entity && entityId) {
|
||||
return (
|
||||
<UserRelationUpsert
|
||||
entity={entity}
|
||||
entityId={entityId}
|
||||
oakPath={`${oakFullpath}.relations`}
|
||||
claimUrl="/userEntityGrant/claim"
|
||||
qrCodeType="wechatPublic"
|
||||
/>
|
||||
<PageHeader
|
||||
title={t('pageTitle')}
|
||||
>
|
||||
<UserRelationUpsert
|
||||
entity={entity}
|
||||
entityId={entityId}
|
||||
oakPath={`${oakFullpath}.relations`}
|
||||
claimUrl="/userEntityGrant/claim"
|
||||
qrCodeType="wechatPublic"
|
||||
/>
|
||||
</PageHeader>
|
||||
);
|
||||
}
|
||||
return <div className={Styles.container}>{t('tips')}</div>
|
||||
return (
|
||||
<PageHeader title={t('pageTitle')}>
|
||||
<div className={Styles.container}>{t('tips')}</div>
|
||||
</PageHeader>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Loading…
Reference in New Issue