Skip to content

Commit

Permalink
Change Profil detail according to design
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed Nov 11, 2023
1 parent 9910678 commit a2e787c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
6 changes: 0 additions & 6 deletions src/components/Profile/ProfileDetail.module.scss

This file was deleted.

9 changes: 0 additions & 9 deletions src/components/Profile/ProfileDetail.module.scss.d.ts

This file was deleted.

20 changes: 12 additions & 8 deletions src/components/Profile/ProfileDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {useSeminarInfo} from '@/utils/useSeminarInfo'

import {Button, Link} from '../Clickable/Clickable'
import {PasswordChangeDialog} from './PasswordChangeForm'
import styles from './ProfileDetail.module.scss'

type ProfileLineInput = {
label: string
Expand All @@ -18,11 +17,12 @@ type ProfileLineInput = {

const ProfileLine: FC<ProfileLineInput> = ({label, value}) => {
return (
// font-size: 30px podla designu
<Typography sx={{fontSize: '1.875rem'}}>
<span className={styles.label}>{label}</span>
{value}
</Typography>
<Stack direction={'row'} spacing={1}>
<Typography variant="h2">{label}</Typography>
<Typography variant="h2" fontStyle="normal" fontWeight="400" textTransform="none" component="span">
{value}
</Typography>
</Stack>
)
}

Expand Down Expand Up @@ -54,8 +54,12 @@ export const ProfileDetail: FC = () => {
<ProfileLine label={'tel. č. na rodiča'} value={profile?.parent_phone || '-'} />
</Stack>
<Stack direction={'row'} mt={3} spacing={2}>
<Link href={`/${seminar}/profil/uprava`}>Upraviť údaje</Link>
<Button onClick={toggleOpenPasswordDialog}>Zmeniť heslo</Button>
<Link href={`/${seminar}/profil/uprava`}>
<Typography variant="button2">Upraviť údaje</Typography>
</Link>
<Button onClick={toggleOpenPasswordDialog}>
<Typography variant="button2">Zmeniť heslo</Typography>
</Button>
</Stack>
<PasswordChangeDialog open={openPasswordDialog} close={toggleOpenPasswordDialog} />
</Stack>
Expand Down

0 comments on commit a2e787c

Please sign in to comment.