File tree 2 files changed +12
-21
lines changed
services/web-ui/src/pages/ProfilePage
2 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { Avatar, Typography } from "@mui/material";
4
4
5
5
import { ProfileDetails } from "src/api" ;
6
6
import { Center } from "src/components/ui/Center" ;
7
- import { useTranslation } from "src/core/i18n" ;
8
7
9
8
export interface ProfilePageComponentProps {
10
9
profile : ProfileDetails ;
@@ -13,19 +12,21 @@ export interface ProfilePageComponentProps {
13
12
export function ProfilePageComponent ( {
14
13
profile,
15
14
} : ProfilePageComponentProps ) : ReactElement {
16
- const { t } = useTranslation ( "profile" ) ;
17
-
18
15
return (
19
16
< >
20
17
< Center >
21
18
< Avatar src = { profile . photo ?. url } sx = { { height : 150 , width : 150 } } />
22
19
</ Center >
23
20
24
- < Typography gutterBottom sx = { { paddingTop : 2 } } variant = "h5" >
25
- { t ( "description.title" ) }
26
- </ Typography >
21
+ < Center >
22
+ < Typography gutterBottom sx = { { paddingTop : 2 } } variant = "h5" >
23
+ { profile . name }
24
+ </ Typography >
25
+ </ Center >
27
26
28
- < Typography > { profile . description } </ Typography >
27
+ < Center >
28
+ < Typography > { profile . description } </ Typography >
29
+ </ Center >
29
30
</ >
30
31
) ;
31
32
}
Original file line number Diff line number Diff line change 1
- import React from "react" ;
1
+ import { ReactElement } from "react" ;
2
2
3
- import { Typography } from "@mui/material" ;
3
+ import { Box } from "@mui/material" ;
4
4
5
- import { useTranslation } from "src/core/i18n" ;
6
-
7
- export function ProfilePageHeader ( ) : React . ReactElement {
8
- const { t } = useTranslation ( "profile" ) ;
9
-
10
- return (
11
- < >
12
- < Typography sx = { { paddingTop : 2 } } variant = "h5" >
13
- { t ( "header" ) }
14
- </ Typography >
15
- </ >
16
- ) ;
5
+ export function ProfilePageHeader ( ) : ReactElement {
6
+ return < Box sx = { { pt : 3 } } /> ;
17
7
}
You can’t perform that action at this time.
0 commit comments