Skip to content

Commit

Permalink
画面ロードのアイコンを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
MurakawaTakuya committed Dec 8, 2024
1 parent 5e638a7 commit 94dec82
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Components/TopPage/TopPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";
import { useUser } from "@/utils/UserContext";
import CircularProgress from "@mui/joy/CircularProgress";
import { redirect } from "next/navigation";
import { ReactNode } from "react";

Expand All @@ -15,7 +16,18 @@ export const TopPage = ({ children }: TopPageProps) => {
return (
<>
{user === undefined ? (
<>ローディングぐるぐるしてるつもり</>
<CircularProgress
color="primary"
variant="soft"
size="lg"
value={30}
sx={{
position: "absolute",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
}}
/>
) : (
<main>{children}</main>
)}
Expand Down

0 comments on commit 94dec82

Please sign in to comment.