fix: linter issues

This commit is contained in:
Lei Nelissen
2023-04-23 01:15:07 +02:00
parent 2e816f4a71
commit 6ccfd19dea
3 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
"ios": "react-native run-ios --scheme \"Fintunes\"",
"start": "react-native start",
"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'",
"postinstall": "patch-package"
},

View File

@@ -1,6 +1,6 @@
import React, { useCallback } from 'react';
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 { Header, SubHeader } from 'components/Typography';
import styled from 'styled-components/native';
@@ -17,7 +17,7 @@ import usePlayTracks from 'utility/usePlayTracks';
import { selectIsDownloaded } from 'store/downloads/selectors';
import { useGetImage } from 'utility/JellyfinApi';
type Route = RouteProp<ModalStackParams, 'TrackPopupMenu'>;
type Route = RouteProp<StackParams, 'TrackPopupMenu'>;
const Container = styled.View`
padding: 40px;

View File

@@ -5,7 +5,7 @@ import { t } from '@localisation';
import { setReceivedErrorReportingAlert } from 'store/settings/actions';
import { setSentryStatus } from './Sentry';
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
@@ -13,7 +13,7 @@ import { ModalNavigationProp } from 'screens/types';
*/
export default function ErrorReportingAlert() {
const { hasReceivedErrorReportingAlert } = useTypedSelector(state => state.settings);
const navigation = useNavigation<ModalNavigationProp>();
const navigation = useNavigation<NavigationProp>();
const dispatch = useAppDispatch();
useEffect(() => {