feat: update
This commit is contained in:
@ -9,7 +9,7 @@ import LoginButton from '@/components/login-button';
|
||||
import PartnerEntry from '@/components/partner-entry';
|
||||
import Slogan from '@/components/slogan';
|
||||
import SwitchBar from '@/components/switch-bar';
|
||||
import { RoleType, PageUrl } from '@/constants/app';
|
||||
import { RoleType, PageUrl, PageType } from '@/constants/app';
|
||||
import AnchorFragment from '@/fragments/user/anchor';
|
||||
import CompanyFragment from '@/fragments/user/company';
|
||||
import useUserInfo from '@/hooks/use-user-info';
|
||||
@ -41,7 +41,7 @@ export default function User() {
|
||||
useShareAppMessage(() => getCommonShareMessage({ useCapture: false }));
|
||||
|
||||
return (
|
||||
<HomePage>
|
||||
<HomePage type={PageType.User}>
|
||||
<CustomNavigationBar className={`${PREFIX}__navigation-bar`}>
|
||||
<SwitchBar title={roleType === RoleType.Anchor ? '切换为企业' : '切换为主播'} onClick={handleSwitchRoleType} />
|
||||
</CustomNavigationBar>
|
||||
|
Reference in New Issue
Block a user