chore: fix linter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { t } from '@localisation';
|
||||
import { t } from '@/localisation';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components/native';
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Text } from 'components/Typography';
|
||||
import { THEME_COLOR } from 'CONSTANTS';
|
||||
import { Text } from '@/components/Typography';
|
||||
import { THEME_COLOR } from '@/CONSTANTS';
|
||||
import React, { useCallback } from 'react';
|
||||
import { showRoutePicker, useAirplayRoutes } from 'react-airplay';
|
||||
import { TouchableOpacity } from 'react-native';
|
||||
import styled, { css } from 'styled-components/native';
|
||||
import AirplayAudioIcon from 'assets/icons/airplay-audio.svg';
|
||||
import useDefaultStyles from 'components/Colors';
|
||||
import { t } from '@localisation';
|
||||
import useDefaultStyles from '@/components/Colors';
|
||||
import { t } from '@/localisation';
|
||||
|
||||
const Container = styled.View<{ active?: boolean }>`
|
||||
display: flex;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import React from 'react';
|
||||
import { useNetInfo } from '@react-native-community/netinfo';
|
||||
import { THEME_COLOR } from 'CONSTANTS';
|
||||
import { THEME_COLOR } from '@/CONSTANTS';
|
||||
import styled from 'styled-components/native';
|
||||
import CloudSlash from 'assets/icons/cloud-slash.svg';
|
||||
import { Text } from 'react-native';
|
||||
import { t } from '@localisation';
|
||||
import useDefaultStyles from 'components/Colors';
|
||||
import { t } from '@/localisation';
|
||||
import useDefaultStyles from '@/components/Colors';
|
||||
|
||||
const Well = styled.View`
|
||||
border-radius: 8px;
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import TrackPlayer, { State, usePlaybackState } from 'react-native-track-player';
|
||||
import { TouchableOpacity, useColorScheme } from 'react-native';
|
||||
import styled from 'styled-components/native';
|
||||
import { useHasNextQueue, useHasPreviousQueue } from 'utility/useQueue';
|
||||
import { useHasNextQueue, useHasPreviousQueue } from '@/utility/useQueue';
|
||||
import ForwardIcon from 'assets/icons/forward-end.svg';
|
||||
import BackwardIcon from 'assets/icons/backward-end.svg';
|
||||
import PlayIcon from 'assets/icons/play.svg';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import React from 'react';
|
||||
import { View } from 'react-native';
|
||||
import useCurrentTrack from 'utility/useCurrentTrack';
|
||||
import useCurrentTrack from '@/utility/useCurrentTrack';
|
||||
import styled from 'styled-components/native';
|
||||
import CoverImage from 'components/CoverImage';
|
||||
import { Header, SubHeader } from 'components/Typography';
|
||||
import CoverImage from '@/components/CoverImage';
|
||||
import { Header, SubHeader } from '@/components/Typography';
|
||||
|
||||
const Artwork = styled(CoverImage)`
|
||||
margin: 0 auto 25px auto;
|
||||
|
||||
@@ -6,9 +6,9 @@ import ProgressTrack, {
|
||||
getMinutes,
|
||||
getSeconds,
|
||||
ProgressTrackContainer
|
||||
} from 'components/Progresstrack';
|
||||
} from '@/components/Progresstrack';
|
||||
import { Gesture, GestureDetector, gestureHandlerRootHOC } from 'react-native-gesture-handler';
|
||||
import { THEME_COLOR } from 'CONSTANTS';
|
||||
import { THEME_COLOR } from '@/CONSTANTS';
|
||||
import Reanimated, {
|
||||
useSharedValue,
|
||||
useAnimatedStyle,
|
||||
@@ -17,8 +17,8 @@ import Reanimated, {
|
||||
useDerivedValue,
|
||||
runOnJS,
|
||||
} from 'react-native-reanimated';
|
||||
import ReText from 'components/ReText';
|
||||
import useCurrentTrack from 'utility/useCurrentTrack';
|
||||
import ReText from '@/components/ReText';
|
||||
import useCurrentTrack from '@/utility/useCurrentTrack';
|
||||
|
||||
const DRAG_HANDLE_SIZE = 20;
|
||||
const PADDING_TOP = 12;
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import useQueue from 'utility/useQueue';
|
||||
import useQueue from '@/utility/useQueue';
|
||||
import { View, StyleSheet, ListRenderItemInfo } from 'react-native';
|
||||
import styled, { css } from 'styled-components/native';
|
||||
import useCurrentTrack from 'utility/useCurrentTrack';
|
||||
import TouchableHandler from 'components/TouchableHandler';
|
||||
import useCurrentTrack from '@/utility/useCurrentTrack';
|
||||
import TouchableHandler from '@/components/TouchableHandler';
|
||||
import TrackPlayer, { RepeatMode, Track } from 'react-native-track-player';
|
||||
import { t } from '@localisation';
|
||||
import useDefaultStyles from 'components/Colors';
|
||||
import { Text } from 'components/Typography';
|
||||
import { t } from '@/localisation';
|
||||
import useDefaultStyles from '@/components/Colors';
|
||||
import { Text } from '@/components/Typography';
|
||||
import RepeatIcon from 'assets/icons/repeat.svg';
|
||||
import RepeatSingleIcon from 'assets/icons/repeat.1.svg';
|
||||
import Button from 'components/Button';
|
||||
import { THEME_COLOR } from 'CONSTANTS';
|
||||
import DownloadIcon from 'components/DownloadIcon';
|
||||
import Divider from 'components/Divider';
|
||||
import ticksToDuration from 'utility/ticksToDuration';
|
||||
import Button from '@/components/Button';
|
||||
import { THEME_COLOR } from '@/CONSTANTS';
|
||||
import DownloadIcon from '@/components/DownloadIcon';
|
||||
import Divider from '@/components/Divider';
|
||||
import ticksToDuration from '@/utility/ticksToDuration';
|
||||
|
||||
const ICON_SIZE = 16;
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import useCurrentTrack from 'utility/useCurrentTrack';
|
||||
import useCurrentTrack from '@/utility/useCurrentTrack';
|
||||
import CloudIcon from 'assets/icons/cloud.svg';
|
||||
import InternalDriveIcon from 'assets/icons/internal-drive.svg';
|
||||
import useDefaultStyles from 'components/Colors';
|
||||
import { Text } from 'components/Typography';
|
||||
import useDefaultStyles from '@/components/Colors';
|
||||
import { Text } from '@/components/Typography';
|
||||
import styled from 'styled-components/native';
|
||||
import Casting from './Casting';
|
||||
import { t } from '@localisation';
|
||||
import { t } from '@/localisation';
|
||||
|
||||
const ICON_SIZE = 16;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user