chore: fix remaining import statements
This commit is contained in:
@@ -5,7 +5,7 @@ import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
||||
import { THEME_COLOR } from '@/CONSTANTS';
|
||||
import { t } from '@/localisation';
|
||||
import useDefaultStyles, { ColoredBlurView } from '@/components/Colors';
|
||||
import { StackParams } from 'screens/types';
|
||||
import { StackParams } from '@/screens/types';
|
||||
import NowPlaying from './overlays/NowPlaying';
|
||||
|
||||
import RecentAlbums from './stacks/RecentAlbums';
|
||||
|
||||
@@ -3,8 +3,8 @@ import { ActivityIndicator, Animated, Dimensions, Platform, Pressable, View } fr
|
||||
import FastImage from 'react-native-fast-image';
|
||||
import styled, { css } from 'styled-components/native';
|
||||
|
||||
import PlayIcon from 'assets/icons/play.svg';
|
||||
import PauseIcon from 'assets/icons/pause.svg';
|
||||
import PlayIcon from '@/assets/icons/play.svg';
|
||||
import PauseIcon from '@/assets/icons/pause.svg';
|
||||
import useCurrentTrack from '@/utility/useCurrentTrack';
|
||||
import TrackPlayer, { State, usePlaybackState, useProgress } from 'react-native-track-player';
|
||||
import { Shadow } from 'react-native-shadow-2';
|
||||
@@ -15,7 +15,7 @@ import useDefaultStyles, { ColoredBlurView } from '@/components/Colors';
|
||||
import { useNavigation } from '@react-navigation/native';
|
||||
import { calculateProgressTranslation } from '@/components/Progresstrack';
|
||||
import { THEME_COLOR } from '@/CONSTANTS';
|
||||
import { NavigationProp } from 'screens/types';
|
||||
import { NavigationProp } from '@/screens/types';
|
||||
import { ShadowWrapper } from '@/components/Shadow';
|
||||
import { useBottomTabBarHeight } from '@react-navigation/bottom-tabs';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { fetchAlbum, fetchTracksByAlbum } from '@/store/music/actions';
|
||||
import { differenceInDays } from 'date-fns';
|
||||
import { ALBUM_CACHE_AMOUNT_OF_DAYS } from '@/CONSTANTS';
|
||||
import { t } from '@/localisation';
|
||||
import { NavigationProp, StackParams } from 'screens/types';
|
||||
import { NavigationProp, StackParams } from '@/screens/types';
|
||||
import { SubHeader, Text } from '@/components/Typography';
|
||||
import { ScrollView } from 'react-native-gesture-handler';
|
||||
import { useGetImage } from '@/utility/JellyfinApi';
|
||||
|
||||
@@ -16,7 +16,7 @@ import useDefaultStyles, { ColoredBlurView } from '@/components/Colors';
|
||||
import { Album } from '@/store/music/types';
|
||||
import { Text } from '@/components/Typography';
|
||||
import { ShadowWrapper } from '@/components/Shadow';
|
||||
import { NavigationProp } from 'screens/types';
|
||||
import { NavigationProp } from '@/screens/types';
|
||||
import { SafeSectionList } from '@/components/SafeNavigatorView';
|
||||
|
||||
const HeadingHeight = 50;
|
||||
|
||||
@@ -14,7 +14,7 @@ import useDefaultStyles from '@/components/Colors';
|
||||
import { Album } from '@/store/music/types';
|
||||
import { Text } from '@/components/Typography';
|
||||
import { ShadowWrapper } from '@/components/Shadow';
|
||||
import { NavigationProp, StackParams } from 'screens/types';
|
||||
import { NavigationProp, StackParams } from '@/screens/types';
|
||||
import { SafeFlatList } from '@/components/SafeNavigatorView';
|
||||
import { chunk } from 'lodash';
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import AlphabetScroller from '@/components/AlphabetScroller';
|
||||
import styled from 'styled-components/native';
|
||||
import useDefaultStyles, { ColoredBlurView } from '@/components/Colors';
|
||||
import { Text } from '@/components/Typography';
|
||||
import { NavigationProp } from 'screens/types';
|
||||
import { NavigationProp } from '@/screens/types';
|
||||
import { SafeSectionList } from '@/components/SafeNavigatorView';
|
||||
import { Gap } from '@/components/Utility';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { fetchTracksByPlaylist } from '@/store/music/actions';
|
||||
import { differenceInDays } from 'date-fns';
|
||||
import { ALBUM_CACHE_AMOUNT_OF_DAYS } from '@/CONSTANTS';
|
||||
import { t } from '@/localisation';
|
||||
import { StackParams } from 'screens/types';
|
||||
import { StackParams } from '@/screens/types';
|
||||
|
||||
type Route = RouteProp<StackParams, 'Album'>;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import TouchableHandler from '@/components/TouchableHandler';
|
||||
import AlbumImage, { AlbumItem } from './components/AlbumImage';
|
||||
import { EntityId } from '@reduxjs/toolkit';
|
||||
import useDefaultStyles from '@/components/Colors';
|
||||
import { NavigationProp } from 'screens/types';
|
||||
import { NavigationProp } from '@/screens/types';
|
||||
import { SafeFlatList, useNavigationOffsets } from '@/components/SafeNavigatorView';
|
||||
|
||||
interface GeneratedAlbumItemProps {
|
||||
|
||||
@@ -16,7 +16,7 @@ import { Album } from '@/store/music/types';
|
||||
import Divider from '@/components/Divider';
|
||||
import styled from 'styled-components/native';
|
||||
import { ShadowWrapper } from '@/components/Shadow';
|
||||
import { NavigationProp } from 'screens/types';
|
||||
import { NavigationProp } from '@/screens/types';
|
||||
import { SafeFlatList } from '@/components/SafeNavigatorView';
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
|
||||
@@ -27,7 +27,7 @@ function AlbumImage(props: FastImageProps) {
|
||||
|
||||
if (!props.source || hasError) {
|
||||
return (
|
||||
<Container {...props} source={colorScheme === 'light' ? require('assets/images/empty-album-light.png') : require('assets/images/empty-album-dark.png')} />
|
||||
<Container {...props} source={colorScheme === 'light' ? require('@/assets/images/empty-album-light.png') : require('@/assets/images/empty-album-dark.png')} />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,16 +8,16 @@ import { THEME_COLOR } from '@/CONSTANTS';
|
||||
import TouchableHandler from '@/components/TouchableHandler';
|
||||
import useCurrentTrack from '@/utility/useCurrentTrack';
|
||||
import TrackPlayer from 'react-native-track-player';
|
||||
import Play from 'assets/icons/play.svg';
|
||||
import Shuffle from 'assets/icons/shuffle.svg';
|
||||
import Play from '@/assets/icons/play.svg';
|
||||
import Shuffle from '@/assets/icons/shuffle.svg';
|
||||
import useDefaultStyles from '@/components/Colors';
|
||||
import usePlayTracks from '@/utility/usePlayTracks';
|
||||
import { EntityId } from '@reduxjs/toolkit';
|
||||
import { WrappableButtonRow, WrappableButton } from '@/components/WrappableButtonRow';
|
||||
import { NavigationProp } from 'screens/types';
|
||||
import { NavigationProp } from '@/screens/types';
|
||||
import DownloadIcon from '@/components/DownloadIcon';
|
||||
import CloudDownArrow from 'assets/icons/cloud-down-arrow.svg';
|
||||
import Trash from 'assets/icons/trash.svg';
|
||||
import CloudDownArrow from '@/assets/icons/cloud-down-arrow.svg';
|
||||
import Trash from '@/assets/icons/trash.svg';
|
||||
import { queueTrackForDownload, removeDownloadedTrack } from '@/store/downloads/actions';
|
||||
import { selectDownloadedTracks } from '@/store/downloads/selectors';
|
||||
import { Header, SubHeader } from '@/components/Typography';
|
||||
|
||||
Reference in New Issue
Block a user