fix: linter issues
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
"ios": "react-native run-ios --scheme \"Fintunes\"",
|
"ios": "react-native run-ios --scheme \"Fintunes\"",
|
||||||
"start": "react-native start",
|
"start": "react-native start",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx && tsc --noEmit",
|
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx && tsc --noEmit",
|
||||||
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'",
|
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'",
|
||||||
"postinstall": "patch-package"
|
"postinstall": "patch-package"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import { useNavigation, StackActions, useRoute, RouteProp } from '@react-navigation/native';
|
import { useNavigation, StackActions, useRoute, RouteProp } from '@react-navigation/native';
|
||||||
import { ModalStackParams } from 'screens/types';
|
import { StackParams } from 'screens/types';
|
||||||
import { useAppDispatch, useTypedSelector } from 'store';
|
import { useAppDispatch, useTypedSelector } from 'store';
|
||||||
import { Header, SubHeader } from 'components/Typography';
|
import { Header, SubHeader } from 'components/Typography';
|
||||||
import styled from 'styled-components/native';
|
import styled from 'styled-components/native';
|
||||||
@@ -17,7 +17,7 @@ import usePlayTracks from 'utility/usePlayTracks';
|
|||||||
import { selectIsDownloaded } from 'store/downloads/selectors';
|
import { selectIsDownloaded } from 'store/downloads/selectors';
|
||||||
import { useGetImage } from 'utility/JellyfinApi';
|
import { useGetImage } from 'utility/JellyfinApi';
|
||||||
|
|
||||||
type Route = RouteProp<ModalStackParams, 'TrackPopupMenu'>;
|
type Route = RouteProp<StackParams, 'TrackPopupMenu'>;
|
||||||
|
|
||||||
const Container = styled.View`
|
const Container = styled.View`
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { t } from '@localisation';
|
|||||||
import { setReceivedErrorReportingAlert } from 'store/settings/actions';
|
import { setReceivedErrorReportingAlert } from 'store/settings/actions';
|
||||||
import { setSentryStatus } from './Sentry';
|
import { setSentryStatus } from './Sentry';
|
||||||
import { useNavigation } from '@react-navigation/native';
|
import { useNavigation } from '@react-navigation/native';
|
||||||
import { ModalNavigationProp } from 'screens/types';
|
import { NavigationProp } from 'screens/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This will send out an alert message asking the user if they want to enable
|
* This will send out an alert message asking the user if they want to enable
|
||||||
@@ -13,7 +13,7 @@ import { ModalNavigationProp } from 'screens/types';
|
|||||||
*/
|
*/
|
||||||
export default function ErrorReportingAlert() {
|
export default function ErrorReportingAlert() {
|
||||||
const { hasReceivedErrorReportingAlert } = useTypedSelector(state => state.settings);
|
const { hasReceivedErrorReportingAlert } = useTypedSelector(state => state.settings);
|
||||||
const navigation = useNavigation<ModalNavigationProp>();
|
const navigation = useNavigation<NavigationProp>();
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user