Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Profil detail according to design #206

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading