Skip to content

Commit 1c3d477

Browse files
committed
roomHeaderのdaisyUI移行
1 parent 884d3da commit 1c3d477

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed

web/components/chat/RoomHeader.tsx

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,29 @@
1-
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
2-
import { Box, Button, Typography } from "@mui/material";
31
import Link from "next/link";
2+
import { MdArrowBack } from "react-icons/md";
43
import type { DMOverview } from "~/common/types";
54
import UserAvatar from "../human/avatar";
5+
66
type Props = {
77
room: DMOverview;
88
};
99

1010
export function RoomHeader(props: Props) {
1111
const { room } = props;
1212
return (
13-
<Box
14-
sx={{
15-
display: "flex",
16-
alignItems: "center",
17-
padding: "1rem",
18-
}}
19-
>
20-
<Button
21-
variant="text"
22-
sx={{ color: "black", padding: "0px", margin: "0px", minWidth: "0px" }}
23-
LinkComponent={Link}
24-
href="/chat"
25-
>
26-
<ArrowBackIcon />
27-
</Button>
28-
<Box sx={{ marginLeft: "16px", alignItems: "center", display: "flex" }}>
13+
<div className="flex items-center p-4">
14+
<Link href="/chat" passHref>
15+
<div className="m-0 flex items-center p-0 text-black">
16+
<MdArrowBack size={24} />
17+
</div>
18+
</Link>
19+
20+
<div className="ml-4 flex items-center">
2921
<UserAvatar pictureUrl={room.thumbnail} width="30px" height="30px" />
30-
</Box>
31-
<Box sx={{ marginLeft: "16px" }}>
32-
<Typography variant="h6">{room.name}</Typography>
33-
</Box>
34-
</Box>
22+
</div>
23+
24+
<div className="ml-4">
25+
<h6 className="font-semibold text-lg">{room.name}</h6>
26+
</div>
27+
</div>
3528
);
3629
}

0 commit comments

Comments
 (0)