Code Smells Fix v3
continuous-integration/drone/push Build is passing Details

pull/20/head
Louison PARANT 1 year ago
parent fb39ef55c9
commit 3ba2783ae8

@ -9,7 +9,7 @@ type ListProps = {
}
export default function ListSelect(props: ListProps) {
const [selected, setSelected] = React.useState(["None"]);
const [selected, setSelected] = React.useState([]);
const {colors} = useContext(ColorContext);
const styles = StyleSheet.create({

@ -1,6 +1,5 @@
import React, { useContext, useState } from 'react';
import { StyleSheet, Text, View, Image, Pressable } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import ListWithoutSelect from './ListWithoutSelect';
import ColorContext from '../theme/ColorContext';
@ -15,7 +14,6 @@ type ProfileProps = {
export default function ProfileDetails(props) {
const { colors } = useContext(ColorContext)
//const navigation = useNavigation()
const [display, setDisplay] = useState("none")
const changeListVisibility = () => {
if (display == "none"){

@ -5,7 +5,6 @@ import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomePage from '../screens/HomePage';
import Profiles from '../screens/Profiles';
import ModifyProfile from '../screens/ModifyProfile';
import ThemeContext from '../theme/ThemeContext';
import ColorContext from '../theme/ColorContext';
import { HeaderTitle } from './Utils';

@ -15,7 +15,7 @@ import ColorContext from '../theme/ColorContext';
export default function IngredientSelection(props) {
const alphabetArray: Array<string> = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
const [isLoading, setIsLoading] = useState(true);
const [error, setError] = useState("");
const [error, setError] = useState();
const [response, setResponse] = useState<Ingredient[] | undefined>(undefined);
const [selectedIngredients, setSelectedIngredients] = useState([]);
const ingredientService = new IngredientService();

Loading…
Cancel
Save