MCPcopy
hub / github.com/fccview/jotty / UserInfoPage

Function UserInfoPage

app/(loggedInRoutes)/settings/user-info/page.tsx:9–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { Loading } from "@/app/_components/GlobalComponents/Layout/Loading";
8
9export 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}

Callers

nothing calls this directly

Calls 2

useAppModeFunction · 0.90
loadLoginTypeFunction · 0.85

Tested by

no test coverage detected