From deda1f738b8c1d662a5800669eb29b8d40b80e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Sun, 9 Apr 2023 22:47:46 +0200 Subject: [PATCH] fixed text values that weren't seeable in dark mode and styling in the ElementList component --- front/components/GtkUI/ElementList.tsx | 14 +++++---- front/views/settings/SettingsProfileView.tsx | 30 +++++++------------- 2 files changed, 18 insertions(+), 26 deletions(-) diff --git a/front/components/GtkUI/ElementList.tsx b/front/components/GtkUI/ElementList.tsx index 6eea376..5a3a42f 100644 --- a/front/components/GtkUI/ElementList.tsx +++ b/front/components/GtkUI/ElementList.tsx @@ -14,7 +14,7 @@ const getElementTypeNode = ( switch (type) { case "text": return {text}; case "toggle": return Toggle; @@ -78,13 +78,15 @@ type ElementListProps = { }; const ElementList = ({ elements, style }: ElementListProps) => { + + const elementStyle = { + borderRadius: 10, + boxShadow: "0px 0px 3px 0px rgba(0,0,0,0.4)", + }; + return ( {(() => { const elementsWithDividers = []; diff --git a/front/views/settings/SettingsProfileView.tsx b/front/views/settings/SettingsProfileView.tsx index c3d0d91..7ca48ab 100644 --- a/front/views/settings/SettingsProfileView.tsx +++ b/front/views/settings/SettingsProfileView.tsx @@ -58,7 +58,10 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => { paddingTop: 40, }} > - +
{getInitials(user.name)} @@ -70,25 +73,12 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
- - {user.name} - - { type: "text", title: "Date de création", text: user.data.createdAt, - } + }, ]} />