From 01a49134a36c8ddf0d46419b1eff99d2bd44ec0a Mon Sep 17 00:00:00 2001 From: Kgeek33 Date: Sun, 9 Feb 2025 22:33:00 +0100 Subject: [PATCH] =?UTF-8?q?refractor(changelog):=20r=C3=A9organisation=20d?= =?UTF-8?q?u=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/welcome/ChangelogScreen.tsx | 220 +++++++++++++------------- 1 file changed, 107 insertions(+), 113 deletions(-) diff --git a/src/views/welcome/ChangelogScreen.tsx b/src/views/welcome/ChangelogScreen.tsx index 4cc79d069..e9b698c1d 100644 --- a/src/views/welcome/ChangelogScreen.tsx +++ b/src/views/welcome/ChangelogScreen.tsx @@ -111,7 +111,9 @@ const ChangelogScreen: Screen<"ChangelogScreen"> = ({ route, navigation }) => { ]} contentInsetAdjustmentBehavior="automatic" > - {loading && ( + {!isOnline ? ( + + ) : loading ? ( = ({ route, navigation }) => { exiting={animPapillon(FadeOutUp)} > } + leading={ + + } > Chargement des nouveautés... @@ -129,20 +137,14 @@ const ChangelogScreen: Screen<"ChangelogScreen"> = ({ route, navigation }) => { - )} - - {!isOnline && } - - {notFound && ( + ) : notFound ? ( - } - > + }> Impossible de trouver les notes de mise à jour @@ -152,116 +154,108 @@ const ChangelogScreen: Screen<"ChangelogScreen"> = ({ route, navigation }) => { - )} - - {changelog && ( - - - - - - + + + - Papillon - version {changelog.version} - - - {changelog.title} - - - {changelog.subtitle} - - - - - {changelog.description} - - - - + /> + + + Papillon - version {changelog.version} + + + {changelog.title} + + + {changelog.subtitle} + + + + + {changelog.description} + + + + - - } - /> + + } + /> - - {changelog.features.map((feature: Feature, index) => { - return ( - - ); - })} - - + + {changelog.features.map((feature: Feature, index) => { + return ( + + ); + })} + + - - } - /> + + } /> - - {changelog.bugfixes.map((feature: Feature, index) => { - return ( - - ); - })} - + + {changelog.bugfixes.map((feature: Feature, index) => { + return ( + + ); + })} + + - + ) )}