diff --git a/apps/mobile/babel.config.js b/apps/mobile/babel.config.js index 1575c5239..123f8b03f 100644 --- a/apps/mobile/babel.config.js +++ b/apps/mobile/babel.config.js @@ -19,7 +19,7 @@ module.exports = function (api) { ], root: ['src'], alias: { - '@app': './src' + '~': './src' } } ] diff --git a/apps/mobile/src/components/animation/layout.tsx b/apps/mobile/src/components/animation/layout.tsx index 3f36c8d07..f1dabe3ca 100644 --- a/apps/mobile/src/components/animation/layout.tsx +++ b/apps/mobile/src/components/animation/layout.tsx @@ -1,9 +1,9 @@ -import Layout from '@app/constants/Layout'; -import tw from '@app/lib/tailwind'; import { MotiView, useDynamicAnimation } from 'moti'; import React from 'react'; import { StyleSheet, View } from 'react-native'; import { useDerivedValue, useSharedValue } from 'react-native-reanimated'; +import Layout from '~/constants/Layout'; +import tw from '~/lib/tailwind'; // Anything wrapped with FadeIn will fade in on mount. export const FadeInAnimation = ({ children, delay }: { children: any; delay?: number }) => ( diff --git a/apps/mobile/src/components/browse/BrowseLocationItem.tsx b/apps/mobile/src/components/browse/BrowseLocationItem.tsx index 2fb4fa2da..49c271b1d 100644 --- a/apps/mobile/src/components/browse/BrowseLocationItem.tsx +++ b/apps/mobile/src/components/browse/BrowseLocationItem.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; import React from 'react'; import { Pressable, Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; import FolderIcon from '../icons/FolderIcon'; diff --git a/apps/mobile/src/components/browse/BrowseTagItem.tsx b/apps/mobile/src/components/browse/BrowseTagItem.tsx index 0337d214c..e89477f1e 100644 --- a/apps/mobile/src/components/browse/BrowseTagItem.tsx +++ b/apps/mobile/src/components/browse/BrowseTagItem.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; import React from 'react'; import { ColorValue, Pressable, Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; type BrowseTagItemProps = { tagName: string; diff --git a/apps/mobile/src/components/device/Device.tsx b/apps/mobile/src/components/device/Device.tsx index 04a71d37b..0d2ea27b2 100644 --- a/apps/mobile/src/components/device/Device.tsx +++ b/apps/mobile/src/components/device/Device.tsx @@ -1,9 +1,9 @@ -import tw from '@app/lib/tailwind'; -import { FilePath } from '@app/types/bindings'; import { Cloud, Desktop, DeviceMobileCamera, Laptop } from 'phosphor-react-native'; import React from 'react'; import { FlatList, Text, View } from 'react-native'; import { LockClosedIcon } from 'react-native-heroicons/solid'; +import tw from '~/lib/tailwind'; +import { FilePath } from '~/types/bindings'; import FileItem from '../file/FileItem'; diff --git a/apps/mobile/src/components/drawer/DrawerContent.tsx b/apps/mobile/src/components/drawer/DrawerContent.tsx index bddbc61d3..49c0b59c8 100644 --- a/apps/mobile/src/components/drawer/DrawerContent.tsx +++ b/apps/mobile/src/components/drawer/DrawerContent.tsx @@ -1,11 +1,11 @@ -import Layout from '@app/constants/Layout'; -import tw from '@app/lib/tailwind'; import { DrawerContentScrollView } from '@react-navigation/drawer'; import { DrawerContentComponentProps } from '@react-navigation/drawer/lib/typescript/src/types'; import { getFocusedRouteNameFromRoute } from '@react-navigation/native'; import React from 'react'; import { ColorValue, Image, Platform, Pressable, Text, View } from 'react-native'; import { CogIcon } from 'react-native-heroicons/solid'; +import Layout from '~/constants/Layout'; +import tw from '~/lib/tailwind'; import CollapsibleView from '../layout/CollapsibleView'; import Divider from '../primitive/Divider'; diff --git a/apps/mobile/src/components/drawer/DrawerLibraryManager.tsx b/apps/mobile/src/components/drawer/DrawerLibraryManager.tsx index 9d5775a57..7665b7d25 100644 --- a/apps/mobile/src/components/drawer/DrawerLibraryManager.tsx +++ b/apps/mobile/src/components/drawer/DrawerLibraryManager.tsx @@ -1,11 +1,11 @@ -import { useBridgeMutation } from '@app/hooks/rspc'; -import tw from '@app/lib/tailwind'; -import { useCurrentLibrary, useLibraryStore } from '@app/stores/useLibraryStore'; import { MotiView } from 'moti'; import React, { useEffect, useState } from 'react'; import { Pressable, Text, View } from 'react-native'; import { LockClosedIcon } from 'react-native-heroicons/outline'; import { ChevronRightIcon, CogIcon, PlusIcon } from 'react-native-heroicons/solid'; +import { useBridgeMutation } from '~/hooks/rspc'; +import tw from '~/lib/tailwind'; +import { useCurrentLibrary, useLibraryStore } from '~/stores/useLibraryStore'; import { AnimatedHeight } from '../animation/layout'; import Dialog from '../layout/Dialog'; diff --git a/apps/mobile/src/components/drawer/DrawerLocationItem.tsx b/apps/mobile/src/components/drawer/DrawerLocationItem.tsx index 03bf368e8..c950f2e82 100644 --- a/apps/mobile/src/components/drawer/DrawerLocationItem.tsx +++ b/apps/mobile/src/components/drawer/DrawerLocationItem.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; import React from 'react'; import { Pressable, Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; import FolderIcon from '../icons/FolderIcon'; diff --git a/apps/mobile/src/components/drawer/DrawerTagItem.tsx b/apps/mobile/src/components/drawer/DrawerTagItem.tsx index 51c3ffc4f..d364e9845 100644 --- a/apps/mobile/src/components/drawer/DrawerTagItem.tsx +++ b/apps/mobile/src/components/drawer/DrawerTagItem.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; import React from 'react'; import { ColorValue, Pressable, Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; type DrawerTagItemProps = { tagName: string; diff --git a/apps/mobile/src/components/header/Header.tsx b/apps/mobile/src/components/header/Header.tsx index f64764079..df139c78f 100644 --- a/apps/mobile/src/components/header/Header.tsx +++ b/apps/mobile/src/components/header/Header.tsx @@ -1,4 +1,3 @@ -import tw from '@app/lib/tailwind'; import { useDrawerStatus } from '@react-navigation/drawer'; import { DrawerNavigationHelpers } from '@react-navigation/drawer/lib/typescript/src/types'; import { useNavigation } from '@react-navigation/native'; @@ -7,6 +6,7 @@ import { List } from 'phosphor-react-native'; import React from 'react'; import { Pressable, Text, View } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; +import tw from '~/lib/tailwind'; const Header = () => { const navigation = useNavigation(); diff --git a/apps/mobile/src/components/layout/CollapsibleView.tsx b/apps/mobile/src/components/layout/CollapsibleView.tsx index bf0a78392..0d55838ae 100644 --- a/apps/mobile/src/components/layout/CollapsibleView.tsx +++ b/apps/mobile/src/components/layout/CollapsibleView.tsx @@ -1,8 +1,8 @@ -import tw from '@app/lib/tailwind'; import { MotiView } from 'moti'; import React, { useReducer } from 'react'; import { Pressable, StyleProp, Text, TextStyle, View, ViewStyle } from 'react-native'; import { ChevronRightIcon } from 'react-native-heroicons/solid'; +import tw from '~/lib/tailwind'; import { AnimatedHeight } from '../animation/layout'; diff --git a/apps/mobile/src/components/layout/Dialog.tsx b/apps/mobile/src/components/layout/Dialog.tsx index ba9f21333..4b6a634d7 100644 --- a/apps/mobile/src/components/layout/Dialog.tsx +++ b/apps/mobile/src/components/layout/Dialog.tsx @@ -1,7 +1,7 @@ -import tw from '@app/lib/tailwind'; import { MotiView } from 'moti'; import React, { useState } from 'react'; import { KeyboardAvoidingView, Modal, Platform, Pressable, Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; import { Button } from '../primitive/Button'; diff --git a/apps/mobile/src/components/primitive/Button.tsx b/apps/mobile/src/components/primitive/Button.tsx index e78d07790..d2970e3d2 100644 --- a/apps/mobile/src/components/primitive/Button.tsx +++ b/apps/mobile/src/components/primitive/Button.tsx @@ -1,8 +1,8 @@ -import tw from '@app/lib/tailwind'; import { VariantProps, cva } from 'class-variance-authority'; import { MotiPressable, MotiPressableProps } from 'moti/interactions'; import React, { useMemo } from 'react'; import { Pressable, PressableProps } from 'react-native'; +import tw from '~/lib/tailwind'; const button = cva(['border rounded-md items-center shadow-sm'], { variants: { diff --git a/apps/mobile/src/components/primitive/Divider.tsx b/apps/mobile/src/components/primitive/Divider.tsx index 722eeddf8..e1632cd98 100644 --- a/apps/mobile/src/components/primitive/Divider.tsx +++ b/apps/mobile/src/components/primitive/Divider.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; import React from 'react'; import { StyleProp, Text, View, ViewStyle } from 'react-native'; +import tw from '~/lib/tailwind'; type DividerProps = { style?: StyleProp; diff --git a/apps/mobile/src/components/primitive/Input.tsx b/apps/mobile/src/components/primitive/Input.tsx index 4b92cb74e..0f10dc8ed 100644 --- a/apps/mobile/src/components/primitive/Input.tsx +++ b/apps/mobile/src/components/primitive/Input.tsx @@ -1,7 +1,7 @@ -import tw from '@app/lib/tailwind'; import { VariantProps, cva } from 'class-variance-authority'; import React from 'react'; import { TextInput as RNTextInput, TextInputProps as RNTextInputProps } from 'react-native'; +import tw from '~/lib/tailwind'; const input = cva(['text-sm rounded-md border shadow-sm'], { variants: { diff --git a/apps/mobile/src/navigation/DrawerNavigator.tsx b/apps/mobile/src/navigation/DrawerNavigator.tsx index 77c9efff8..6322d97cb 100644 --- a/apps/mobile/src/navigation/DrawerNavigator.tsx +++ b/apps/mobile/src/navigation/DrawerNavigator.tsx @@ -1,7 +1,7 @@ -import DrawerContent from '@app/components/drawer/DrawerContent'; import { DrawerScreenProps, createDrawerNavigator } from '@react-navigation/drawer'; import { CompositeScreenProps, NavigatorScreenParams } from '@react-navigation/native'; import { StackScreenProps } from '@react-navigation/stack'; +import DrawerContent from '~/components/drawer/DrawerContent'; import type { RootStackParamList } from '.'; import type { TabParamList } from './TabNavigator'; diff --git a/apps/mobile/src/navigation/OnboardingNavigator.tsx b/apps/mobile/src/navigation/OnboardingNavigator.tsx index 96b7f1a04..a4db12dfd 100644 --- a/apps/mobile/src/navigation/OnboardingNavigator.tsx +++ b/apps/mobile/src/navigation/OnboardingNavigator.tsx @@ -1,6 +1,6 @@ -import CreateLibraryScreen from '@app/screens/onboarding/CreateLibrary'; -import OnboardingScreen from '@app/screens/onboarding/Onboarding'; import { StackScreenProps, createStackNavigator } from '@react-navigation/stack'; +import CreateLibraryScreen from '~/screens/onboarding/CreateLibrary'; +import OnboardingScreen from '~/screens/onboarding/Onboarding'; const OnboardingStack = createStackNavigator(); diff --git a/apps/mobile/src/navigation/SharedScreens.tsx b/apps/mobile/src/navigation/SharedScreens.tsx index 2e986eae6..752b56a32 100644 --- a/apps/mobile/src/navigation/SharedScreens.tsx +++ b/apps/mobile/src/navigation/SharedScreens.tsx @@ -1,11 +1,11 @@ -import LocationScreen from '@app/screens/Location'; -import TagScreen from '@app/screens/Tag'; import { ParamListBase, StackNavigationState, TypedNavigator } from '@react-navigation/native'; import { StackNavigationEventMap, StackNavigationOptions, StackScreenProps } from '@react-navigation/stack'; +import LocationScreen from '~/screens/Location'; +import TagScreen from '~/screens/Tag'; export function SharedScreens( Stack: TypedNavigator< diff --git a/apps/mobile/src/navigation/TabNavigator.tsx b/apps/mobile/src/navigation/TabNavigator.tsx index 6fbd54ed5..d8760a9ed 100644 --- a/apps/mobile/src/navigation/TabNavigator.tsx +++ b/apps/mobile/src/navigation/TabNavigator.tsx @@ -1,8 +1,8 @@ -import tw from '@app/lib/tailwind'; import { BottomTabScreenProps, createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { CompositeScreenProps, NavigatorScreenParams } from '@react-navigation/native'; import { CirclesFour, Folder, Planet } from 'phosphor-react-native'; import { PhotographIcon } from 'react-native-heroicons/outline'; +import tw from '~/lib/tailwind'; import type { HomeDrawerScreenProps } from './DrawerNavigator'; import BrowseStack, { BrowseStackParamList } from './tabs/BrowseStack'; diff --git a/apps/mobile/src/navigation/index.tsx b/apps/mobile/src/navigation/index.tsx index 6000e4aa8..9543ee6f9 100644 --- a/apps/mobile/src/navigation/index.tsx +++ b/apps/mobile/src/navigation/index.tsx @@ -1,9 +1,9 @@ -import tw from '@app/lib/tailwind'; -import NotFoundScreen from '@app/screens/NotFound'; -import SearchScreen from '@app/screens/modals/Search'; -import SettingsScreen from '@app/screens/modals/settings/Settings'; import { NavigatorScreenParams } from '@react-navigation/native'; import { StackScreenProps, createStackNavigator } from '@react-navigation/stack'; +import tw from '~/lib/tailwind'; +import NotFoundScreen from '~/screens/NotFound'; +import SearchScreen from '~/screens/modals/Search'; +import SettingsScreen from '~/screens/modals/settings/Settings'; import type { DrawerNavParamList } from './DrawerNavigator'; import DrawerNavigator from './DrawerNavigator'; diff --git a/apps/mobile/src/navigation/tabs/BrowseStack.tsx b/apps/mobile/src/navigation/tabs/BrowseStack.tsx index 236e5faa2..6bc09f4b9 100644 --- a/apps/mobile/src/navigation/tabs/BrowseStack.tsx +++ b/apps/mobile/src/navigation/tabs/BrowseStack.tsx @@ -1,8 +1,8 @@ -import Header from '@app/components/header/Header'; -import tw from '@app/lib/tailwind'; -import BrowseScreen from '@app/screens/Browse'; import { CompositeScreenProps } from '@react-navigation/native'; import { StackScreenProps, createStackNavigator } from '@react-navigation/stack'; +import Header from '~/components/header/Header'; +import tw from '~/lib/tailwind'; +import BrowseScreen from '~/screens/Browse'; import { SharedScreens, SharedScreensParamList } from '../SharedScreens'; import { TabScreenProps } from '../TabNavigator'; diff --git a/apps/mobile/src/navigation/tabs/OverviewStack.tsx b/apps/mobile/src/navigation/tabs/OverviewStack.tsx index b71125555..081810148 100644 --- a/apps/mobile/src/navigation/tabs/OverviewStack.tsx +++ b/apps/mobile/src/navigation/tabs/OverviewStack.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; import { CompositeScreenProps } from '@react-navigation/native'; import { StackScreenProps, TransitionPresets, createStackNavigator } from '@react-navigation/stack'; +import tw from '~/lib/tailwind'; import Header from '../../components/header/Header'; import OverviewScreen from '../../screens/Overview'; diff --git a/apps/mobile/src/navigation/tabs/PhotosStack.tsx b/apps/mobile/src/navigation/tabs/PhotosStack.tsx index 29e74e97c..1d59735f1 100644 --- a/apps/mobile/src/navigation/tabs/PhotosStack.tsx +++ b/apps/mobile/src/navigation/tabs/PhotosStack.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; import { CompositeScreenProps } from '@react-navigation/native'; import { StackScreenProps, TransitionPresets, createStackNavigator } from '@react-navigation/stack'; +import tw from '~/lib/tailwind'; import Header from '../../components/header/Header'; import PhotosScreen from '../../screens/Photos'; diff --git a/apps/mobile/src/navigation/tabs/SpacesStack.tsx b/apps/mobile/src/navigation/tabs/SpacesStack.tsx index 8239f6f01..0a8be3551 100644 --- a/apps/mobile/src/navigation/tabs/SpacesStack.tsx +++ b/apps/mobile/src/navigation/tabs/SpacesStack.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; import { CompositeScreenProps } from '@react-navigation/native'; import { StackScreenProps, TransitionPresets, createStackNavigator } from '@react-navigation/stack'; +import tw from '~/lib/tailwind'; import Header from '../../components/header/Header'; import SpacesScreen from '../../screens/Spaces'; diff --git a/apps/mobile/src/screens/Browse.tsx b/apps/mobile/src/screens/Browse.tsx index 8217b9225..3721f0c03 100644 --- a/apps/mobile/src/screens/Browse.tsx +++ b/apps/mobile/src/screens/Browse.tsx @@ -1,10 +1,10 @@ -import BrowseLocationItem from '@app/components/browse/BrowseLocationItem'; -import BrowseTagItem from '@app/components/browse/BrowseTagItem'; -import CollapsibleView from '@app/components/layout/CollapsibleView'; -import tw from '@app/lib/tailwind'; -import { BrowseStackScreenProps } from '@app/navigation/tabs/BrowseStack'; import React from 'react'; import { ColorValue, Text, View } from 'react-native'; +import BrowseLocationItem from '~/components/browse/BrowseLocationItem'; +import BrowseTagItem from '~/components/browse/BrowseTagItem'; +import CollapsibleView from '~/components/layout/CollapsibleView'; +import tw from '~/lib/tailwind'; +import { BrowseStackScreenProps } from '~/navigation/tabs/BrowseStack'; const placeholderLocationData = [ { diff --git a/apps/mobile/src/screens/Location.tsx b/apps/mobile/src/screens/Location.tsx index 26424a10e..08c267ddd 100644 --- a/apps/mobile/src/screens/Location.tsx +++ b/apps/mobile/src/screens/Location.tsx @@ -1,7 +1,7 @@ -import tw from '@app/lib/tailwind'; -import { SharedScreenProps } from '@app/navigation/SharedScreens'; import React from 'react'; import { Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; +import { SharedScreenProps } from '~/navigation/SharedScreens'; export default function LocationScreen({ navigation, route }: SharedScreenProps<'Location'>) { const { id } = route.params; diff --git a/apps/mobile/src/screens/NotFound.tsx b/apps/mobile/src/screens/NotFound.tsx index 1cba3b178..becadaa17 100644 --- a/apps/mobile/src/screens/NotFound.tsx +++ b/apps/mobile/src/screens/NotFound.tsx @@ -1,6 +1,6 @@ -import tw from '@app/lib/tailwind'; -import { RootStackScreenProps } from '@app/navigation'; import { Text, TouchableOpacity, View } from 'react-native'; +import tw from '~/lib/tailwind'; +import { RootStackScreenProps } from '~/navigation'; export default function NotFoundScreen({ navigation }: RootStackScreenProps<'NotFound'>) { return ( diff --git a/apps/mobile/src/screens/Overview.tsx b/apps/mobile/src/screens/Overview.tsx index 6231e4b1e..05666fe54 100644 --- a/apps/mobile/src/screens/Overview.tsx +++ b/apps/mobile/src/screens/Overview.tsx @@ -1,10 +1,10 @@ -import Device from '@app/components/device/Device'; -import VirtualizedListWrapper from '@app/components/layout/VirtualizedListWrapper'; -import OverviewStats from '@app/containers/OverviewStats'; -import tw from '@app/lib/tailwind'; -import { OverviewStackScreenProps } from '@app/navigation/tabs/OverviewStack'; import React from 'react'; import { FlatList, View } from 'react-native'; +import Device from '~/components/device/Device'; +import VirtualizedListWrapper from '~/components/layout/VirtualizedListWrapper'; +import OverviewStats from '~/containers/OverviewStats'; +import tw from '~/lib/tailwind'; +import { OverviewStackScreenProps } from '~/navigation/tabs/OverviewStack'; const placeholderOverviewStats = { id: 1, diff --git a/apps/mobile/src/screens/Photos.tsx b/apps/mobile/src/screens/Photos.tsx index 3065bf244..c1ee9c4eb 100644 --- a/apps/mobile/src/screens/Photos.tsx +++ b/apps/mobile/src/screens/Photos.tsx @@ -1,7 +1,7 @@ -import tw from '@app/lib/tailwind'; -import { PhotosStackScreenProps } from '@app/navigation/tabs/PhotosStack'; import React from 'react'; import { Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; +import { PhotosStackScreenProps } from '~/navigation/tabs/PhotosStack'; export default function PhotosScreen({ navigation }: PhotosStackScreenProps<'Photos'>) { return ( diff --git a/apps/mobile/src/screens/Spaces.tsx b/apps/mobile/src/screens/Spaces.tsx index 8ea16ed34..706105973 100644 --- a/apps/mobile/src/screens/Spaces.tsx +++ b/apps/mobile/src/screens/Spaces.tsx @@ -1,7 +1,7 @@ -import tw from '@app/lib/tailwind'; -import { SpacesStackScreenProps } from '@app/navigation/tabs/SpacesStack'; import React from 'react'; import { Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; +import { SpacesStackScreenProps } from '~/navigation/tabs/SpacesStack'; export default function SpacesScreen({ navigation }: SpacesStackScreenProps<'Spaces'>) { return ( diff --git a/apps/mobile/src/screens/Tag.tsx b/apps/mobile/src/screens/Tag.tsx index 1b4d9e645..6f5278551 100644 --- a/apps/mobile/src/screens/Tag.tsx +++ b/apps/mobile/src/screens/Tag.tsx @@ -1,7 +1,7 @@ -import tw from '@app/lib/tailwind'; -import { SharedScreenProps } from '@app/navigation/SharedScreens'; import React from 'react'; import { Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; +import { SharedScreenProps } from '~/navigation/SharedScreens'; export default function TagScreen({ navigation, route }: SharedScreenProps<'Tag'>) { const { id } = route.params; diff --git a/apps/mobile/src/screens/modals/Search.tsx b/apps/mobile/src/screens/modals/Search.tsx index 56a167d21..3fab3b1f7 100644 --- a/apps/mobile/src/screens/modals/Search.tsx +++ b/apps/mobile/src/screens/modals/Search.tsx @@ -1,10 +1,10 @@ -import { Button } from '@app/components/primitive/Button'; -import tw from '@app/lib/tailwind'; -import { RootStackScreenProps } from '@app/navigation'; import { MagnifyingGlass } from 'phosphor-react-native'; import React, { useState } from 'react'; import { ActivityIndicator, Pressable, Text, TextInput, View } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; +import { Button } from '~/components/primitive/Button'; +import tw from '~/lib/tailwind'; +import { RootStackScreenProps } from '~/navigation'; const SearchScreen = ({ navigation }: RootStackScreenProps<'Search'>) => { const { top } = useSafeAreaInsets(); diff --git a/apps/mobile/src/screens/modals/settings/Settings.tsx b/apps/mobile/src/screens/modals/settings/Settings.tsx index 0e586d1bf..d30472da8 100644 --- a/apps/mobile/src/screens/modals/settings/Settings.tsx +++ b/apps/mobile/src/screens/modals/settings/Settings.tsx @@ -1,7 +1,7 @@ -import tw from '@app/lib/tailwind'; -import { RootStackScreenProps } from '@app/navigation'; import React from 'react'; import { Text, View } from 'react-native'; +import tw from '~/lib/tailwind'; +import { RootStackScreenProps } from '~/navigation'; export default function SettingsScreen({ navigation }: RootStackScreenProps<'Settings'>) { return ( diff --git a/apps/mobile/src/screens/onboarding/CreateLibrary.tsx b/apps/mobile/src/screens/onboarding/CreateLibrary.tsx index 31e2ceded..02c564612 100644 --- a/apps/mobile/src/screens/onboarding/CreateLibrary.tsx +++ b/apps/mobile/src/screens/onboarding/CreateLibrary.tsx @@ -1,10 +1,10 @@ -import { AnimatedButton } from '@app/components/primitive/Button'; -import { setItemToStorage } from '@app/lib/storage'; -import tw from '@app/lib/tailwind'; -import { OnboardingStackScreenProps } from '@app/navigation/OnboardingNavigator'; -import { useOnboardingStore } from '@app/stores/useOnboardingStore'; import React from 'react'; import { Text, View } from 'react-native'; +import { AnimatedButton } from '~/components/primitive/Button'; +import { setItemToStorage } from '~/lib/storage'; +import tw from '~/lib/tailwind'; +import { OnboardingStackScreenProps } from '~/navigation/OnboardingNavigator'; +import { useOnboardingStore } from '~/stores/useOnboardingStore'; const CreateLibraryScreen = ({ navigation }: OnboardingStackScreenProps<'CreateLibrary'>) => { const { hideOnboarding } = useOnboardingStore(); diff --git a/apps/mobile/src/screens/onboarding/Onboarding.tsx b/apps/mobile/src/screens/onboarding/Onboarding.tsx index cab0aa776..ebeed11f8 100644 --- a/apps/mobile/src/screens/onboarding/Onboarding.tsx +++ b/apps/mobile/src/screens/onboarding/Onboarding.tsx @@ -1,9 +1,9 @@ -import { FadeInUpAnimation, LogoAnimation } from '@app/components/animation/layout'; -import { AnimatedButton } from '@app/components/primitive/Button'; -import tw from '@app/lib/tailwind'; -import { OnboardingStackScreenProps } from '@app/navigation/OnboardingNavigator'; import React from 'react'; import { Image, Text, View } from 'react-native'; +import { FadeInUpAnimation, LogoAnimation } from '~/components/animation/layout'; +import { AnimatedButton } from '~/components/primitive/Button'; +import tw from '~/lib/tailwind'; +import { OnboardingStackScreenProps } from '~/navigation/OnboardingNavigator'; const OnboardingScreen = ({ navigation }: OnboardingStackScreenProps<'Onboarding'>) => { return ( diff --git a/apps/mobile/src/stores/useLibraryStore.ts b/apps/mobile/src/stores/useLibraryStore.ts index e5be837af..f18e12e94 100644 --- a/apps/mobile/src/stores/useLibraryStore.ts +++ b/apps/mobile/src/stores/useLibraryStore.ts @@ -1,10 +1,10 @@ -import { useBridgeQuery } from '@app/hooks/rspc'; -import { LibraryConfigWrapped } from '@app/types/bindings'; import AsyncStorage from '@react-native-async-storage/async-storage'; import produce from 'immer'; import { useMemo } from 'react'; import create from 'zustand'; import { persist } from 'zustand/middleware'; +import { useBridgeQuery } from '~/hooks/rspc'; +import { LibraryConfigWrapped } from '~/types/bindings'; interface LibraryStore { _hasHydrated: boolean; diff --git a/apps/mobile/tsconfig.json b/apps/mobile/tsconfig.json index 99a8a6c70..db6a5a83e 100644 --- a/apps/mobile/tsconfig.json +++ b/apps/mobile/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "baseUrl": "src", "paths": { - "@app/*": ["*"] + "~/*": ["*"] } } }