From a2e787c64906e16203bc805e45124a028a1f1259 Mon Sep 17 00:00:00 2001 From: matushl Date: Sat, 11 Nov 2023 22:00:55 +0100 Subject: [PATCH] Change Profil detail according to design --- .../Profile/ProfileDetail.module.scss | 6 ------ .../Profile/ProfileDetail.module.scss.d.ts | 9 --------- src/components/Profile/ProfileDetail.tsx | 20 +++++++++++-------- 3 files changed, 12 insertions(+), 23 deletions(-) delete mode 100644 src/components/Profile/ProfileDetail.module.scss delete mode 100644 src/components/Profile/ProfileDetail.module.scss.d.ts diff --git a/src/components/Profile/ProfileDetail.module.scss b/src/components/Profile/ProfileDetail.module.scss deleted file mode 100644 index defc1ea7..00000000 --- a/src/components/Profile/ProfileDetail.module.scss +++ /dev/null @@ -1,6 +0,0 @@ -.label { - font-weight: bold; - text-transform: uppercase; - font-style: italic; - padding-right: .5rem; -} diff --git a/src/components/Profile/ProfileDetail.module.scss.d.ts b/src/components/Profile/ProfileDetail.module.scss.d.ts deleted file mode 100644 index 214131f0..00000000 --- a/src/components/Profile/ProfileDetail.module.scss.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export type Styles = { - label: string -} - -export type ClassNames = keyof Styles - -declare const styles: Styles - -export default styles diff --git a/src/components/Profile/ProfileDetail.tsx b/src/components/Profile/ProfileDetail.tsx index 9779ae56..c1f68d9a 100644 --- a/src/components/Profile/ProfileDetail.tsx +++ b/src/components/Profile/ProfileDetail.tsx @@ -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 @@ -18,11 +17,12 @@ type ProfileLineInput = { const ProfileLine: FC = ({label, value}) => { return ( - // font-size: 30px podla designu - - {label} - {value} - + + {label} + + {value} + + ) } @@ -54,8 +54,12 @@ export const ProfileDetail: FC = () => { - Upraviť údaje - + + Upraviť údaje + +