File tree Expand file tree Collapse file tree 1 file changed +16
-23
lines changed
Expand file tree Collapse file tree 1 file changed +16
-23
lines changed Original file line number Diff line number Diff line change 1- import ArrowBackIcon from "@mui/icons-material/ArrowBack" ;
2- import { Box , Button , Typography } from "@mui/material" ;
31import Link from "next/link" ;
2+ import { MdArrowBack } from "react-icons/md" ;
43import type { DMOverview } from "~/common/types" ;
54import UserAvatar from "../human/avatar" ;
5+
66type Props = {
77 room : DMOverview ;
88} ;
99
1010export 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}
You can’t perform that action at this time.
0 commit comments