fix: linter issues
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user