|
|
|
@ -1,18 +1,18 @@
|
|
|
|
|
// screens/moves/MoveListScreen.tsx
|
|
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import { Button, FlatList, StyleSheet, View } from 'react-native';
|
|
|
|
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
|
|
|
import { RootStackParamList } from "../../navigation/navigationTypes";
|
|
|
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
|
|
|
import { deleteMove, getMoves } from '../../redux/actions/moveActions';
|
|
|
|
|
import { MoveState } from "../../redux/reducers/moveReducer";
|
|
|
|
|
import { AppDispatch } from "../../redux/store";
|
|
|
|
|
import MoveListItem from "../../components/MoveListItem";
|
|
|
|
|
import { MOVE_DETAIL, MOVE_FORM, MOVE_LIST } from "../../navigation/constants";
|
|
|
|
|
import { RouteProp, useFocusEffect } from "@react-navigation/native";
|
|
|
|
|
import AlertModal from "../../components/AlertModal";
|
|
|
|
|
import { MOVE_ERROR } from "../../redux/constants";
|
|
|
|
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
|
|
|
import { RootStackParamList } from "../../navigation/navigationTypes";
|
|
|
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
|
|
|
import { deleteMove, getMoves } from '../../redux/actions/moveActions';
|
|
|
|
|
import { MoveState } from "../../redux/reducers/moveReducer";
|
|
|
|
|
import { AppDispatch } from "../../redux/store";
|
|
|
|
|
import MoveListItem from "../../components/MoveListItem";
|
|
|
|
|
import { MOVE_DETAIL, MOVE_FORM, MOVE_LIST } from "../../navigation/constants";
|
|
|
|
|
import { RouteProp, useFocusEffect } from "@react-navigation/native";
|
|
|
|
|
import AlertModal from "../../components/AlertModal";
|
|
|
|
|
import { MOVE_ERROR } from "../../redux/constants";
|
|
|
|
|
|
|
|
|
|
type MoveListScreenNavigationProp = StackNavigationProp<RootStackParamList, typeof MOVE_LIST>;
|
|
|
|
|
type MoveListScreenRouteProp = RouteProp<RootStackParamList, typeof MOVE_LIST>;
|
|
|
|
|