|
@@ -1,7 +1,7 @@
|
|
|
import { useState } from 'react'
|
|
import { useState } from 'react'
|
|
|
import { View, Text, ScrollView } from '@tarojs/components'
|
|
import { View, Text, ScrollView } from '@tarojs/components'
|
|
|
import Taro from '@tarojs/taro'
|
|
import Taro from '@tarojs/taro'
|
|
|
-import { TabBarLayout } from '@/layouts/tab-bar-layout'
|
|
|
|
|
|
|
+import YongrenTabBarLayout from '@/layouts/yongren-tab-bar-layout'
|
|
|
import { useAuth } from '@/utils/auth'
|
|
import { useAuth } from '@/utils/auth'
|
|
|
import { cn } from '@/utils/cn'
|
|
import { cn } from '@/utils/cn'
|
|
|
import { Button } from '@/components/ui/button'
|
|
import { Button } from '@/components/ui/button'
|
|
@@ -130,17 +130,17 @@ const ProfilePage: React.FC = () => {
|
|
|
|
|
|
|
|
if (loading) {
|
|
if (loading) {
|
|
|
return (
|
|
return (
|
|
|
- <TabBarLayout activeKey="profile">
|
|
|
|
|
|
|
+ <YongrenTabBarLayout activeKey="settings">
|
|
|
<View className="flex-1 flex items-center justify-center">
|
|
<View className="flex-1 flex items-center justify-center">
|
|
|
<View className="i-heroicons-arrow-path-20-solid animate-spin w-8 h-8 text-blue-500" />
|
|
<View className="i-heroicons-arrow-path-20-solid animate-spin w-8 h-8 text-blue-500" />
|
|
|
</View>
|
|
</View>
|
|
|
- </TabBarLayout>
|
|
|
|
|
|
|
+ </YongrenTabBarLayout>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!userProfile) {
|
|
if (!userProfile) {
|
|
|
return (
|
|
return (
|
|
|
- <TabBarLayout activeKey="profile">
|
|
|
|
|
|
|
+ <YongrenTabBarLayout activeKey="settings">
|
|
|
<Navbar
|
|
<Navbar
|
|
|
title="企业账户"
|
|
title="企业账户"
|
|
|
leftIcon=""
|
|
leftIcon=""
|
|
@@ -158,12 +158,12 @@ const ProfilePage: React.FC = () => {
|
|
|
</Button>
|
|
</Button>
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
|
- </TabBarLayout>
|
|
|
|
|
|
|
+ </YongrenTabBarLayout>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <TabBarLayout activeKey="profile">
|
|
|
|
|
|
|
+ <YongrenTabBarLayout activeKey="settings">
|
|
|
<Navbar
|
|
<Navbar
|
|
|
title="企业账户"
|
|
title="企业账户"
|
|
|
rightIcon="i-heroicons-cog-6-tooth-20-solid"
|
|
rightIcon="i-heroicons-cog-6-tooth-20-solid"
|
|
@@ -274,7 +274,7 @@ const ProfilePage: React.FC = () => {
|
|
|
</Text>
|
|
</Text>
|
|
|
</View>
|
|
</View>
|
|
|
</ScrollView>
|
|
</ScrollView>
|
|
|
- </TabBarLayout>
|
|
|
|
|
|
|
+ </YongrenTabBarLayout>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|