mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
fix(native): change person detail screen presentation from slide animation to modal
This commit is contained in:
@@ -153,8 +153,7 @@ function AppContent() {
|
|||||||
name="person/[id]"
|
name="person/[id]"
|
||||||
dangerouslySingular
|
dangerouslySingular
|
||||||
options={{
|
options={{
|
||||||
headerShown: true,
|
presentation: "modal",
|
||||||
animation: "slide_from_right",
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Stack.Protected>
|
</Stack.Protected>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { Stack, useRouter } from "expo-router";
|
|||||||
import { useRef, useState } from "react";
|
import { useRef, useState } from "react";
|
||||||
import { Alert, ScrollView, type TextInput, View } from "react-native";
|
import { Alert, ScrollView, type TextInput, View } from "react-native";
|
||||||
import Animated, { FadeInDown } from "react-native-reanimated";
|
import Animated, { FadeInDown } from "react-native-reanimated";
|
||||||
|
import { useResolveClassNames } from "uniwind";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { Button, ButtonLabel } from "@/components/ui/button";
|
import { Button, ButtonLabel } from "@/components/ui/button";
|
||||||
import { Spinner } from "@/components/ui/spinner";
|
import { Spinner } from "@/components/ui/spinner";
|
||||||
@@ -47,6 +48,8 @@ export default function ChangePasswordScreen() {
|
|||||||
const confirmPasswordRef = useRef<TextInput>(null);
|
const confirmPasswordRef = useRef<TextInput>(null);
|
||||||
const [revokeOtherSessions, setRevokeOtherSessions] = useState(false);
|
const [revokeOtherSessions, setRevokeOtherSessions] = useState(false);
|
||||||
|
|
||||||
|
const headerTitleStyle = useResolveClassNames("font-display text-xl");
|
||||||
|
|
||||||
const form = useForm({
|
const form = useForm({
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
currentPassword: "",
|
currentPassword: "",
|
||||||
@@ -92,7 +95,9 @@ export default function ChangePasswordScreen() {
|
|||||||
contentInsetAdjustmentBehavior="automatic"
|
contentInsetAdjustmentBehavior="automatic"
|
||||||
keyboardShouldPersistTaps="handled"
|
keyboardShouldPersistTaps="handled"
|
||||||
>
|
>
|
||||||
<Stack.Screen.Title>Change Password</Stack.Screen.Title>
|
<Stack.Screen.Title style={headerTitleStyle as Record<string, unknown>}>
|
||||||
|
Change Password
|
||||||
|
</Stack.Screen.Title>
|
||||||
|
|
||||||
<form.Subscribe
|
<form.Subscribe
|
||||||
selector={(state) => ({
|
selector={(state) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user