From 3b228bf31f41b4aaa70e690f4fdf4577b7b376c8 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 10 Nov 2024 19:07:59 +0900
Subject: [PATCH 01/22] delete typo
---
web/app/chat/page.tsx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/web/app/chat/page.tsx b/web/app/chat/page.tsx
index b6ced666..5412e532 100644
--- a/web/app/chat/page.tsx
+++ b/web/app/chat/page.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Typography } from "@mui/material";
import { useSearchParams } from "next/navigation";
import { Suspense } from "react";
import { useRoomsOverview } from "~/api/chat/hooks";
@@ -31,7 +30,7 @@ function ChatListContent() {
) : state.current === "loading" ? (
) : state.current === "error" ? (
- Error: {state.error.message}
+
Error: {state.error.message}
) : (
);
From bb42a3308201ea0d66823f835c1fb1e7bb509014 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 10 Nov 2024 19:10:35 +0900
Subject: [PATCH 02/22] delete typo home
---
web/app/home/layout.tsx | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/web/app/home/layout.tsx b/web/app/home/layout.tsx
index 5a9eb8f3..9dca6bd3 100644
--- a/web/app/home/layout.tsx
+++ b/web/app/home/layout.tsx
@@ -1,4 +1,3 @@
-import { Box } from "@mui/material";
import BottomBar from "~/components/BottomBar";
import Header from "~/components/Header";
@@ -10,21 +9,9 @@ export default function HomePageLayout({
return (
<>
-
+
{children}
-
+
>
);
From 7e4f14c39de0abf0ae76fab530264decdc154c0d Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 10 Nov 2024 19:15:17 +0900
Subject: [PATCH 03/22] =?UTF-8?q?box=E3=82=92=E5=89=8A=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/app/login/page.tsx | 31 +++++++++----------------------
1 file changed, 9 insertions(+), 22 deletions(-)
diff --git a/web/app/login/page.tsx b/web/app/login/page.tsx
index f4e73469..ac6f462b 100644
--- a/web/app/login/page.tsx
+++ b/web/app/login/page.tsx
@@ -1,6 +1,6 @@
"use client";
-import { Box, Button, Link, Typography } from "@mui/material";
+import { Button, Link, Typography } from "@mui/material";
import { GoogleAuthProvider, signInWithPopup } from "firebase/auth";
import { useRouter } from "next/navigation";
import { useSnackbar } from "notistack";
@@ -125,24 +125,11 @@ export default function Login() {
return (
-
-
+
+
-
-
+
+
CourseMateを使って
@@ -150,9 +137,9 @@ export default function Login() {
友達になろう
-
+
-
+
+
);
}
From 169f58b43fd0f73943a9dfacfde9a634409268ce Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 10 Nov 2024 19:20:12 +0900
Subject: [PATCH 04/22] =?UTF-8?q?login=E3=81=AEdaisyUI=E7=A7=BB=E8=A1=8C?=
=?UTF-8?q?=E3=82=92=E5=AE=8C=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/app/login/page.tsx | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/web/app/login/page.tsx b/web/app/login/page.tsx
index ac6f462b..327ebae2 100644
--- a/web/app/login/page.tsx
+++ b/web/app/login/page.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Button, Link, Typography } from "@mui/material";
import { GoogleAuthProvider, signInWithPopup } from "firebase/auth";
import { useRouter } from "next/navigation";
import { useSnackbar } from "notistack";
@@ -130,13 +129,13 @@ export default function Login() {
-
+
CourseMateを使って
同じ授業の人と
友達になろう
-
+
@@ -206,14 +205,13 @@ export default function Login() {
-
初めての方はこちら
-
+
From b547bb0c5471f8dd0015b555ee193bfde548411d Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 10:43:02 +0900
Subject: [PATCH 05/22] =?UTF-8?q?=E8=89=B2=E3=82=92=E3=81=A1=E3=82=83?=
=?UTF-8?q?=E3=82=93=E3=81=A8=E5=BD=93=E3=81=A6=E3=81=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/app/chat/page.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/app/chat/page.tsx b/web/app/chat/page.tsx
index 5412e532..66a344ed 100644
--- a/web/app/chat/page.tsx
+++ b/web/app/chat/page.tsx
@@ -30,7 +30,7 @@ function ChatListContent() {
) : state.current === "loading" ? (
) : state.current === "error" ? (
- Error: {state.error.message}
+ Error: {state.error.message}
) : (
);
From 5394fbd5d621dfaae2889fa224d4eac6e55ff6ea Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 11:03:10 +0900
Subject: [PATCH 06/22] =?UTF-8?q?=E7=99=BB=E9=8C=B2=E7=94=BB=E9=9D=A2?=
=?UTF-8?q?=E3=81=AEmui=E3=82=92=E5=89=8A=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/app/signup/page.tsx | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/web/app/signup/page.tsx b/web/app/signup/page.tsx
index 4bb9bce5..bc96ff21 100644
--- a/web/app/signup/page.tsx
+++ b/web/app/signup/page.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Box } from "@mui/material";
import { useSnackbar } from "notistack";
import { useState } from "react";
@@ -78,19 +77,10 @@ function Registration() {
export default function RegistrationPage() {
return (
-
+
-
+
);
}
From 329a6bf76cbd2aebb12e24f8aad37014f5bfab25 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 11:28:27 +0900
Subject: [PATCH 07/22] =?UTF-8?q?=E3=83=81=E3=83=A5=E3=83=BC=E3=83=88?=
=?UTF-8?q?=E3=83=AA=E3=82=A2=E3=83=AB=E3=81=AEdaisyUI=E7=A7=BB=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/app/tutorial/page.tsx | 55 ++++++++-------------------------------
1 file changed, 11 insertions(+), 44 deletions(-)
diff --git a/web/app/tutorial/page.tsx b/web/app/tutorial/page.tsx
index bf0c6491..7982323d 100644
--- a/web/app/tutorial/page.tsx
+++ b/web/app/tutorial/page.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Box, Typography } from "@mui/material";
import { Navigation, Pagination } from "swiper/modules";
import { Swiper, SwiperSlide } from "swiper/react";
import "swiper/css";
@@ -42,68 +41,36 @@ const tutorialSteps = [
export default function Tutorial() {
return (
-
+
-
+
{tutorialSteps.map((step) => (
-
-
- {step.label}
-
+
+
{step.label}

-
+
))}
-
+
ホーム画面へ
-
-
-
+
+
+
);
}
From cee339493901afe8b52ee374a94911fb6976ebe3 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 12:08:39 +0900
Subject: [PATCH 08/22] =?UTF-8?q?Header=E3=81=AEdaisyUI=E7=A7=BB=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/Header.tsx | 45 ++++++++++++++-------------------------
1 file changed, 16 insertions(+), 29 deletions(-)
diff --git a/web/components/Header.tsx b/web/components/Header.tsx
index 4a2c3bf1..f8c39270 100644
--- a/web/components/Header.tsx
+++ b/web/components/Header.tsx
@@ -1,6 +1,5 @@
-import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
-import { AppBar, Box, IconButton, Toolbar, Typography } from "@mui/material";
import Link from "next/link";
+import { MdInfoOutline } from "react-icons/md";
import { CourseMateIcon } from "./common/CourseMateIcon";
type Props = {
@@ -10,32 +9,20 @@ type Props = {
export default function Header(props: Props) {
const { title } = props;
return (
- <>
-
-
-
-
-
-
-
-
- {title}
-
-
-
-
-
-
- >
+
);
}
From 4d058678eea4033e7ae1aad1d67c236436390427 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 12:15:40 +0900
Subject: [PATCH 09/22] =?UTF-8?q?=E3=82=AF=E3=83=AD=E3=83=83=E3=83=91?=
=?UTF-8?q?=E3=83=BC=E3=81=AEdaisyUI=E7=A7=BB=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/ImageCropper.tsx | 28 +++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/web/components/ImageCropper.tsx b/web/components/ImageCropper.tsx
index c3b6f0da..24be6a06 100644
--- a/web/components/ImageCropper.tsx
+++ b/web/components/ImageCropper.tsx
@@ -1,4 +1,3 @@
-import { Slider } from "@mui/material";
import { useState } from "react";
import Cropper from "react-easy-crop";
@@ -11,6 +10,10 @@ export function ImageCropper({ sameOriginURL: url, onImageChange }: Props) {
const [crop, setCrop] = useState({ x: 0, y: 0 });
const [zoom, setZoom] = useState(1);
+ const handleSliderChange = (event: React.ChangeEvent) => {
+ setZoom(Number(event.target.value));
+ };
+
return (
<>
- {
- setZoom(Number(newVal) || 1);
- }}
- />
+
+
+ {zoom.toFixed(2)}
+
>
);
}
From 486766e5d90cba5a693dcc76807ff17d40034636 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 12:26:30 +0900
Subject: [PATCH 10/22] =?UTF-8?q?messageinput=E3=81=AEdaisyUI=E7=A7=BB?=
=?UTF-8?q?=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/chat/MessageInput.tsx | 39 ++++++++++++----------------
1 file changed, 17 insertions(+), 22 deletions(-)
diff --git a/web/components/chat/MessageInput.tsx b/web/components/chat/MessageInput.tsx
index da8e7fe0..9e359ccf 100644
--- a/web/components/chat/MessageInput.tsx
+++ b/web/components/chat/MessageInput.tsx
@@ -1,6 +1,5 @@
-import SendIcon from "@mui/icons-material/Send";
-import { Box, IconButton, Stack, TextField, Typography } from "@mui/material";
import { useEffect, useState } from "react";
+import { MdSend } from "react-icons/md";
import type { DMOverview, SendMessage, UserID } from "~/common/types";
import { parseContent } from "~/common/zod/methods";
@@ -58,34 +57,30 @@ export function MessageInput({ send, room }: Props) {
}
return (
-
+
+ {error && {error}
}
-
+
);
}
From 884d3dad536e37f96794bf27a7d7656765d7889e Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 12:31:06 +0900
Subject: [PATCH 11/22] =?UTF-8?q?room=E3=81=AEdaisyUI=E7=A7=BB=E8=A1=8C?=
=?UTF-8?q?=EF=BC=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/chat/Room.tsx | 33 +++++++++------------------------
1 file changed, 9 insertions(+), 24 deletions(-)
diff --git a/web/components/chat/Room.tsx b/web/components/chat/Room.tsx
index 302c54d6..8e5a995d 100644
--- a/web/components/chat/Room.tsx
+++ b/web/components/chat/Room.tsx
@@ -1,4 +1,3 @@
-import { ListItem, Stack, Typography } from "@mui/material";
import type { DMOverview } from "~/common/types";
import UserAvatar from "../human/avatar";
@@ -9,28 +8,14 @@ type Props = {
export function Room(props: Props) {
const { room } = props;
return (
- <>
-
-
-
- {room.name}
- {room.lastMsg?.content}
-
-
- >
+
+
+
+
+
{room.name}
+
{room.lastMsg?.content}
+
+
+
);
}
From 1c3d4771d7153e7df555aa023afda905dc8d6218 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 12:34:53 +0900
Subject: [PATCH 12/22] =?UTF-8?q?roomHeader=E3=81=AEdaisyUI=E7=A7=BB?=
=?UTF-8?q?=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/chat/RoomHeader.tsx | 39 ++++++++++++------------------
1 file changed, 16 insertions(+), 23 deletions(-)
diff --git a/web/components/chat/RoomHeader.tsx b/web/components/chat/RoomHeader.tsx
index e0baa125..8e6c1eb0 100644
--- a/web/components/chat/RoomHeader.tsx
+++ b/web/components/chat/RoomHeader.tsx
@@ -1,8 +1,8 @@
-import ArrowBackIcon from "@mui/icons-material/ArrowBack";
-import { Box, Button, Typography } from "@mui/material";
import Link from "next/link";
+import { MdArrowBack } from "react-icons/md";
import type { DMOverview } from "~/common/types";
import UserAvatar from "../human/avatar";
+
type Props = {
room: DMOverview;
};
@@ -10,27 +10,20 @@ type Props = {
export function RoomHeader(props: Props) {
const { room } = props;
return (
-
-
-
+
+
+
+
+
+
+
+
-
-
- {room.name}
-
-
+
+
+
+
{room.name}
+
+
);
}
From c3bedae1414af2bda30e184f425a29db2518bc7d Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 14:29:20 +0900
Subject: [PATCH 13/22] =?UTF-8?q?roomwindow=E3=81=AEdaisyUI=E7=A7=BB?=
=?UTF-8?q?=E8=A1=8C=E3=82=92=E5=AE=8C=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/chat/RoomWindow.tsx | 136 +++++++++--------------------
1 file changed, 39 insertions(+), 97 deletions(-)
diff --git a/web/components/chat/RoomWindow.tsx b/web/components/chat/RoomWindow.tsx
index eb2777d8..f58e520d 100644
--- a/web/components/chat/RoomWindow.tsx
+++ b/web/components/chat/RoomWindow.tsx
@@ -1,4 +1,3 @@
-import { Box, Button, Paper, TextField, Typography } from "@mui/material";
import { useSearchParams } from "next/navigation";
import { useSnackbar } from "notistack";
import { useCallback, useEffect, useRef, useState } from "react";
@@ -29,7 +28,9 @@ export function RoomWindow() {
: null;
if (!room) {
- return 部屋が見つかりません。;
+ return (
+ 部屋が見つかりません。
+ );
}
const {
@@ -163,53 +164,22 @@ export function RoomWindow() {
return (
<>
-
+
-
-
+
+
{messages && messages.length > 0 ? (
-
+
{messages.map((m) => (
-
{editingMessageId === m.id ? (
-
-
+
+
+
+
) : (
-
-
+
{m.content}
-
+
{m.creator === myId && (
)}
-
+
)}
-
+
))}
-
+
) : (
- 最初のメッセージを送ってみましょう!
+
+ 最初のメッセージを送ってみましょう!
+
)}
-
-
+
+
-
+
>
);
}
From ba3cd01f11d3a64aa10b723d6c514e312c903a5c Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 15:55:15 +0900
Subject: [PATCH 14/22] =?UTF-8?q?=E3=83=AA=E3=82=AF=E3=82=A8=E3=82=B9?=
=?UTF-8?q?=E3=83=88=E3=82=BF=E3=83=96=E3=81=AEdaisyUI=E7=A7=BB=E8=A1=8C?=
=?UTF-8?q?=E3=82=92=E5=AE=8C=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/match/myRequests.tsx | 40 ++++++++++++-------------
web/components/match/othersRequests.tsx | 37 +++++++++++------------
2 files changed, 37 insertions(+), 40 deletions(-)
diff --git a/web/components/match/myRequests.tsx b/web/components/match/myRequests.tsx
index 1e247d16..b7ec6ef1 100644
--- a/web/components/match/myRequests.tsx
+++ b/web/components/match/myRequests.tsx
@@ -1,5 +1,3 @@
-import { Box } from "@mui/material";
-import { List } from "@mui/material";
import * as request from "~/api/request";
import { usePendingFromMe } from "~/api/user";
import FullScreenCircularProgress from "../common/FullScreenCircularProgress";
@@ -11,12 +9,8 @@ export default function MyReq() {
const { openModal } = useModal();
return (
-
-
+
+
{state.data && state.data.length > 0
? "以下のリクエストを送信しました!"
: "リクエストを送信しましょう!"}
@@ -24,23 +18,27 @@ export default function MyReq() {
{state.current === "loading" ? (
) : state.error ? (
-
Error: {state.error.message}
+
Error: {state.error.message}
) : (
-
+
{state.data?.map((receivingUser) => (
- openModal(receivingUser)}
- onCancel={(id) => {
- request.cancel(id).then(reload);
- }}
- />
+ className="rounded-lg bg-base-100 p-4 shadow"
+ >
+ openModal(receivingUser)}
+ onCancel={(id) => {
+ request.cancel(id).then(reload);
+ }}
+ />
+
))}
-
+
)}
-
+
);
}
diff --git a/web/components/match/othersRequests.tsx b/web/components/match/othersRequests.tsx
index 1e828f14..0e026c79 100644
--- a/web/components/match/othersRequests.tsx
+++ b/web/components/match/othersRequests.tsx
@@ -1,4 +1,3 @@
-import { Box, List } from "@mui/material";
import request from "~/api/request";
import { usePendingToMe } from "~/api/user";
import FullScreenCircularProgress from "../common/FullScreenCircularProgress";
@@ -14,12 +13,8 @@ export default function OthersReq() {
const { openModal } = useModal();
return (
-
-
+
+
{data && data.length > 0
? "以下のリクエストを受け取りました!"
: "リクエストは受け取っていません。"}
@@ -27,22 +22,26 @@ export default function OthersReq() {
{loading ? (
) : error ? (
-
Error: {error.message}
+
Error: {error.message}
) : (
-
+
{data?.map((sendingUser) => (
- openModal(sendingUser)}
- onAccept={() => request.accept(sendingUser.id).then(reload)}
- onReject={() => request.reject(sendingUser.id).then(reload)}
- />
+ className="rounded-lg bg-base-100 p-4 shadow"
+ >
+ openModal(sendingUser)}
+ onAccept={() => request.accept(sendingUser.id).then(reload)}
+ onReject={() => request.reject(sendingUser.id).then(reload)}
+ />
+
))}
-
+
)}
-
+
);
}
From 48ec884e9c0b863106ebeaccb8c263766f6f5a89 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 15:58:28 +0900
Subject: [PATCH 15/22] =?UTF-8?q?=E3=83=9E=E3=83=83=E3=83=81=E3=83=B3?=
=?UTF-8?q?=E3=82=B0=E3=82=BF=E3=83=96=E3=81=AEdaisyUI=E7=A7=BB=E8=A1=8C?=
=?UTF-8?q?=E3=82=92=E5=AE=8C=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/match/matching.tsx | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/web/components/match/matching.tsx b/web/components/match/matching.tsx
index 140515a0..6e402190 100644
--- a/web/components/match/matching.tsx
+++ b/web/components/match/matching.tsx
@@ -1,4 +1,3 @@
-import { Box, List } from "@mui/material";
import { deleteMatch } from "~/api/match";
import { useMatched } from "~/api/user";
import FullScreenCircularProgress from "../common/FullScreenCircularProgress";
@@ -13,13 +12,8 @@ export default function Matchings() {
const { openModal } = useModal();
return (
-
-
+
+
{data && data.length === 0 && (
<>
誰ともマッチングしていません。
@@ -31,9 +25,9 @@ export default function Matchings() {
{current === "loading" ? (
) : error ? (
-
Error: {error.message}
+
Error: {error.message}
) : (
-
+
{data?.map((matchedUser) => (
))}
-
+
)}
-
+
);
}
From 66f52227c3620bb086f26254e8fd806e9bf55188 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 16:03:27 +0900
Subject: [PATCH 16/22] =?UTF-8?q?withfallback=E3=81=AEdaisyUI=E7=A7=BB?=
=?UTF-8?q?=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/components/human/WithFallback.tsx | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/web/components/human/WithFallback.tsx b/web/components/human/WithFallback.tsx
index f9d3981e..fa34eaf3 100644
--- a/web/components/human/WithFallback.tsx
+++ b/web/components/human/WithFallback.tsx
@@ -1,4 +1,3 @@
-import { Avatar } from "@mui/material";
import { ImageFallback } from "../ImageFallback";
type Props = {
@@ -14,8 +13,13 @@ export function AvatarWithFallback({ width, height, url }: Props) {
height={height}
url={url}
fallback={
-
}
/>
From d74640f57db759be850ca4f1a8b1da0afce2f737 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Sun, 17 Nov 2024 16:09:27 +0900
Subject: [PATCH 17/22] =?UTF-8?q?=E6=99=82=E9=96=93=E5=89=B2=E7=99=BB?=
=?UTF-8?q?=E9=8C=B2=E3=80=81=E5=89=8A=E9=99=A4=E3=80=81=E7=B7=A8=E9=9B=86?=
=?UTF-8?q?=E9=96=A2=E4=BF=82=E3=81=AEdaisyUI=E7=A7=BB=E8=A1=8C=E5=AE=8C?=
=?UTF-8?q?=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/CourseDeleteConfirmDialog.tsx | 72 ++++----
.../CourseRegisterConfirmDialog.tsx | 76 ++++----
.../course/components/SelectCourseDialog.tsx | 167 ++++++++----------
3 files changed, 141 insertions(+), 174 deletions(-)
diff --git a/web/components/course/components/CourseDeleteConfirmDialog.tsx b/web/components/course/components/CourseDeleteConfirmDialog.tsx
index 2fdcbe69..a425cda8 100644
--- a/web/components/course/components/CourseDeleteConfirmDialog.tsx
+++ b/web/components/course/components/CourseDeleteConfirmDialog.tsx
@@ -1,13 +1,3 @@
-import {
- Alert,
- Box,
- Button,
- Dialog,
- DialogActions,
- DialogContent,
- DialogContentText,
- DialogTitle,
-} from "@mui/material";
import { useEffect, useState } from "react";
import { deleteMyCourse, getMyCoursesOverlapWith } from "~/api/course";
import type { Course } from "~/common/types";
@@ -26,7 +16,6 @@ export default function CourseDeleteRegisterConfirmDialog({
handleCoursesUpdate: (courses: Course[]) => void;
}) {
const [overlapCourses, setOverlapCourses] = useState([]);
-
const [isLoading, setIsLoading] = useState(false);
useEffect(() => {
@@ -43,19 +32,15 @@ export default function CourseDeleteRegisterConfirmDialog({
}, [course]);
return (
-