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 ( + + ); + })} + + - + ) )}