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