From 0028974c3bc5775a087e360c1326d603497daa16 Mon Sep 17 00:00:00 2001 From: Divlo Date: Sat, 9 Apr 2022 11:44:14 +0200 Subject: [PATCH] fix: improve responsive for UserProfile --- .../Application/UserProfile/UserProfile.tsx | 150 ++++++++++-------- 1 file changed, 80 insertions(+), 70 deletions(-) diff --git a/components/Application/UserProfile/UserProfile.tsx b/components/Application/UserProfile/UserProfile.tsx index 4d626a5..32f36ba 100644 --- a/components/Application/UserProfile/UserProfile.tsx +++ b/components/Application/UserProfile/UserProfile.tsx @@ -16,84 +16,94 @@ export const UserProfile: React.FC = (props) => { const { t } = useTranslation() return ( -
-
-
-
-
-
- Profil Picture -
-
-
-

- {user.name} -

-

- {date.format(new Date(user.createdAt), 'DD/MM/YYYY')} -

+ <> +
+
+
+
+
+
+ Profil Picture
-
- {user.email != null && ( -

- Email:{' '} - - {user.email} - +

+
+

+ {user.name}

- )} - {user.website != null && ( -

- {t('application:website')}:{' '} - - {user.website} - +

+ {date.format(new Date(user.createdAt), 'DD/MM/YYYY')}

- )} - {user.status != null && ( -

- {t('application:status')}:{' '} - - {user.status} - -

- )} +
+
+ {user.email != null && ( +

+ Email:{' '} + + {user.email} + +

+ )} + {user.website != null && ( +

+ {t('application:website')}:{' '} + + {user.website} + +

+ )} + {user.status != null && ( +

+ {t('application:status')}:{' '} + + {user.status} + +

+ )} +
-
-
- {user.biography != null &&

{user.biography}

} + {user.biography != null && ( +
+

{user.biography}

+
+ )}
-
+ + + ) }