remove useless code
This commit is contained in:
@@ -17,9 +17,6 @@ import { NavigationContainer } from '@react-navigation/native';
|
|||||||
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
||||||
import { useNavigation } from '@react-navigation/core';
|
import { useNavigation } from '@react-navigation/core';
|
||||||
|
|
||||||
import { useSelector } from 'react-redux';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const MyTheme = {
|
const MyTheme = {
|
||||||
dark: true,
|
dark: true,
|
||||||
@@ -31,7 +28,6 @@ const MyTheme = {
|
|||||||
const Stack = createNativeStackNavigator();
|
const Stack = createNativeStackNavigator();
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const statusRecipes = useSelector(state => state.recipes.status)
|
|
||||||
return (
|
return (
|
||||||
<NavigationContainer theme={MyTheme}>
|
<NavigationContainer theme={MyTheme}>
|
||||||
<Stack.Navigator screenOptions={{
|
<Stack.Navigator screenOptions={{
|
||||||
@@ -50,9 +46,7 @@ function App() {
|
|||||||
onPress={() => navigation.goBack()}
|
onPress={() => navigation.goBack()}
|
||||||
>
|
>
|
||||||
</MaterialCommunityIcons>)}
|
</MaterialCommunityIcons>)}
|
||||||
}}
|
}}>
|
||||||
options={{
|
|
||||||
}}>
|
|
||||||
|
|
||||||
<Stack.Screen name="Home" component={HomePage} options={{
|
<Stack.Screen name="Home" component={HomePage} options={{
|
||||||
headerLeft: () => (
|
headerLeft: () => (
|
||||||
|
|||||||
Reference in New Issue
Block a user