Skip to content

Commit 453273b

Browse files
committed
fix(mobile): reorganize screens and clean up route files
1 parent b3ce632 commit 453273b

File tree

18 files changed

+34
-318
lines changed

18 files changed

+34
-318
lines changed

apps/mobile/v1/app/modal.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

apps/mobile/v1/components/parallax-scroll-view.tsx

Lines changed: 0 additions & 79 deletions
This file was deleted.

apps/mobile/v1/components/themed-text.tsx

Lines changed: 0 additions & 60 deletions
This file was deleted.

apps/mobile/v1/components/themed-view.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/mobile/v1/components/ui/collapsible.tsx

Lines changed: 0 additions & 45 deletions
This file was deleted.

apps/mobile/v1/components/ui/icon-symbol.ios.tsx

Lines changed: 0 additions & 32 deletions
This file was deleted.

apps/mobile/v1/components/ui/icon-symbol.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

apps/mobile/v1/src/components/FileUpload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function FileUpload({
4040
await Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
4141

4242
// If no noteId, get it from onBeforeUpload callback
43-
let noteId: string | null = initialNoteId;
43+
let noteId: string | null | undefined = initialNoteId;
4444
if (!noteId && onBeforeUpload) {
4545
noteId = await onBeforeUpload();
4646
if (!noteId) {

apps/mobile/v1/src/components/ui/Button.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ export function Button({
2525
}: ButtonProps) {
2626
const theme = useTheme();
2727

28-
const getVariantStyles = () => {
28+
const getVariantStyles = (): {
29+
backgroundColor: string;
30+
color: string;
31+
borderWidth?: number;
32+
borderColor?: string;
33+
textDecorationLine?: 'underline' | 'none' | 'line-through' | 'underline line-through';
34+
} => {
2935
switch (variant) {
3036
case 'destructive':
3137
return {

apps/mobile/v1/src/hooks/useMasterPassword.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ export function useMasterPassword() {
9494
useEffect(() => {
9595
if (isSignedIn && userLoaded && userId) {
9696
checkMasterPasswordStatus();
97+
} else {
98+
// User is not signed in - stop checking immediately
99+
setIsChecking(false);
100+
setNeedsUnlock(true);
97101
}
98102
// eslint-disable-next-line react-hooks/exhaustive-deps
99103
}, [isSignedIn, userLoaded, userId]);

0 commit comments

Comments
 (0)