mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-08 20:10:22 -06:00
changing login flow animations and awaiting for api refetch
This commit is contained in:
@@ -27,7 +27,7 @@ export default function Login(): React.JSX.Element {
|
||||
name="ServerAddress"
|
||||
options={{
|
||||
headerShown: false,
|
||||
animationTypeForReplace: triggerAuth || changeServer ? 'push' : 'pop'
|
||||
animationTypeForReplace: triggerAuth ? 'push' : 'pop'
|
||||
}}
|
||||
component={ServerAddress}
|
||||
/>
|
||||
@@ -46,7 +46,8 @@ export default function Login(): React.JSX.Element {
|
||||
<Stack.Screen
|
||||
name="LibrarySelection"
|
||||
options={{
|
||||
headerShown: false
|
||||
headerShown: false,
|
||||
animationTypeForReplace: 'push'
|
||||
}}
|
||||
component={ServerLibrary}
|
||||
/>
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function ServerLibrary(): React.JSX.Element {
|
||||
mutationFn: async () => {
|
||||
await mutateServerCredentials();
|
||||
setChangeUsername(true);
|
||||
return refetchApi()
|
||||
return await refetchApi()
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user