mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-25 20:48:39 -06:00
This should pop the server auth screen when we navigate away from the login page
This commit is contained in:
@@ -6,7 +6,7 @@ import { useApiClientContext } from "../jellyfin-api-provider";
|
||||
|
||||
export default function Login(): React.JSX.Element {
|
||||
|
||||
const { server } = useApiClientContext();
|
||||
const { server, changeServer } = useApiClientContext();
|
||||
|
||||
const Stack = createStackNavigator();
|
||||
|
||||
@@ -17,7 +17,8 @@ export default function Login(): React.JSX.Element {
|
||||
<Stack.Screen
|
||||
name="ServerAddress"
|
||||
options={{
|
||||
title: "Enter your Jellyfin server"
|
||||
title: "Enter your Jellyfin server",
|
||||
animationTypeForReplace: changeServer ? 'pop' : 'push'
|
||||
}}
|
||||
component={ServerAddress}
|
||||
>
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function ServerAuthentication(): React.JSX.Element {
|
||||
const isDarkMode = useColorScheme() === 'dark';
|
||||
|
||||
const loginContext = useApiClientContext();
|
||||
loginContext.setChangeServer(false);
|
||||
|
||||
const clearServer = useMutation({
|
||||
mutationFn: async () => {
|
||||
|
||||
Reference in New Issue
Block a user