()
| 7 | import { Loading } from "@/app/_components/GlobalComponents/Layout/Loading"; |
| 8 | |
| 9 | export default function UserInfoPage() { |
| 10 | const { user } = useAppMode(); |
| 11 | const [isSsoUser, setIsSsoUser] = useState(false); |
| 12 | const [isLoading, setIsLoading] = useState(true); |
| 13 | |
| 14 | useEffect(() => { |
| 15 | const loadLoginType = async () => { |
| 16 | const loginType = await getLoginType(); |
| 17 | setIsSsoUser(loginType === "sso"); |
| 18 | setIsLoading(false); |
| 19 | }; |
| 20 | loadLoginType(); |
| 21 | }, []); |
| 22 | |
| 23 | if (isLoading) { |
| 24 | return <Loading />; |
| 25 | } |
| 26 | |
| 27 | return ( |
| 28 | <ProfileTab |
| 29 | user={user} |
| 30 | isAdmin={user?.isAdmin || false} |
| 31 | setUser={() => { }} |
| 32 | isSsoUser={isSsoUser} |
| 33 | /> |
| 34 | ); |
| 35 | } |
nothing calls this directly
no test coverage detected