Skip to content

Commit 2f44a82

Browse files
authored
step4を修正 (#523)
# PRの概要 ## 具体的な変更内容 ## 影響範囲 ## 動作要件 ## 補足 ## レビューリクエストを出す前にチェック! - [ ] 改めてセルフレビューしたか - [ ] 手動での動作検証を行ったか - [ ] server の機能追加ならば、テストを書いたか - 理由: 書いた | server の機能追加ではない - [ ] 間違った使い方が存在するならば、それのドキュメントをコメントで書いたか - 理由: 書いた | 間違った使い方は存在しない - [ ] わかりやすいPRになっているか <!-- レビューリクエスト後は、Slackでもメンションしてお願いすることを推奨します。 -->
1 parent 412b1ce commit 2f44a82

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

web/app/chat/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
import { Typography } from "@mui/material";
43
import { useSearchParams } from "next/navigation";
54
import { Suspense } from "react";
65
import { useRoomsOverview } from "~/api/chat/hooks";
@@ -31,7 +30,7 @@ function ChatListContent() {
3130
) : state.current === "loading" ? (
3231
<FullScreenCircularProgress />
3332
) : state.current === "error" ? (
34-
<Typography color="error">Error: {state.error.message}</Typography>
33+
<p className="decoration-red">Error: {state.error.message}</p>
3534
) : (
3635
<RoomList roomsData={state.data} />
3736
);
Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Typography } from "@mui/material";
2-
import { Box } from "@mui/system";
31
import Link from "next/link";
42
import { useMyID } from "~/api/user";
53
import FullScreenCircularProgress from "~/components/common/FullScreenCircularProgress";
@@ -9,37 +7,26 @@ export default function Step4() {
97
const { state } = useMyID();
108
return (
119
<>
12-
<Box>
10+
<div>
1311
{state.current === "loading" ? (
1412
<FullScreenCircularProgress />
1513
) : state.current === "error" ? (
1614
<p>Error: {state.error.message}</p>
1715
) : (
18-
<Box mt={2} mx={2} display="flex" flexDirection="column" gap={2}>
19-
<Typography variant="h6" component="h1">
20-
授業情報の登録 (スキップ可)
21-
</Typography>
22-
<Box>
16+
<div className="mx-4 mt-4 flex flex-col gap-4">
17+
<h1>授業情報の登録 (スキップ可)</h1>
18+
<div>
2319
<EditableCoursesTable userId={state.data} />
24-
</Box>
25-
</Box>
20+
</div>
21+
</div>
2622
)}
27-
</Box>
28-
<Box
29-
p={3}
30-
sx={{
31-
position: "fixed",
32-
display: "flex",
33-
justifyContent: "space-between",
34-
bottom: 0,
35-
width: "100%",
36-
}}
37-
>
23+
</div>
24+
<div className="b-0 fixed flex w-full justify-between p-6">
3825
<span />
3926
<Link href="/tutorial" className="btn btn-primary">
4027
次へ
4128
</Link>
42-
</Box>
29+
</div>
4330
</>
4431
);
4532
}

0 commit comments

Comments
 (0)