File tree 1 file changed +18
-5
lines changed
services/web-ui/src/features/chat/pages/CreateChatPage
1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { ReactElement , ReactNode } from "react" ;
2
+ import { Link as ReactRouterLink } from "react-router-dom" ;
3
+
4
+ import { ArrowBack } from "@mui/icons-material" ;
5
+ import { Box , IconButton , Typography } from "@mui/material" ;
2
6
3
- import { NavLayout } from "src/components/layout" ;
4
7
import { Nav } from "src/components/nav" ;
5
8
import { useTranslation } from "src/core/i18n" ;
6
9
@@ -13,11 +16,21 @@ export function CreateChatPageNav({
13
16
} : CreateChatPageNavProps ) : ReactElement {
14
17
const { t } = useTranslation ( "chat-create" ) ;
15
18
19
+ const appBarContent = (
20
+ < >
21
+ < IconButton component = { ReactRouterLink } to = "/chat" >
22
+ < ArrowBack />
23
+
24
+ < Typography sx = { { pl : 3 } } variant = "h5" >
25
+ { t ( "header" ) }
26
+ </ Typography >
27
+ </ IconButton >
28
+ </ >
29
+ ) ;
30
+
16
31
return (
17
- < Nav >
18
- < NavLayout header = { t ( "header" ) } linkText = "Back" to = "/chat" >
19
- { children }
20
- </ NavLayout >
32
+ < Nav appBarContent = { appBarContent } >
33
+ < Box sx = { { px : 3 , pt : 1 } } > { children } </ Box >
21
34
</ Nav >
22
35
) ;
23
36
}
You can’t perform that action at this time.
0 commit comments