removing unused variables and imports

pull/23/head
Rémi REGNAULT 1 year ago
parent 995095f20a
commit ff4f27d1b7

@ -1,8 +1,7 @@
import React, { useContext } from 'react'; import React, { useContext } from 'react';
import {StyleSheet, Text, TextInput, View, Image, FlatList, Pressable} from 'react-native'; import { StyleSheet, Image } from 'react-native';
import ValidateButton from './ValidateButton';
import HeaderFlatList from './HeaderFlatList'; import { MultipleSelectList } from 'react-native-dropdown-select-list'
import { MultipleSelectList, SelectList } from 'react-native-dropdown-select-list'
import ColorContext from '../theme/ColorContext'; import ColorContext from '../theme/ColorContext';
type ListProps = { type ListProps = {
@ -12,7 +11,7 @@ type ListProps = {
export default function ListWithoutSelect(props: ListProps) { export default function ListWithoutSelect(props: ListProps) {
const [selected, setSelected] = React.useState([]); const [selected, setSelected] = React.useState([]);
const { colors, toggleColors } = useContext(ColorContext); const colors = useContext(ColorContext).colors;
const styles = StyleSheet.create({ const styles = StyleSheet.create({
titleBar: { titleBar: {

@ -14,7 +14,7 @@ type ProfileProps = {
} }
export default function ProfileDetails(props) { export default function ProfileDetails(props) {
const { colors, toggleColors } = useContext(ColorContext) const colors = useContext(ColorContext).colors
const navigation = useNavigation() const navigation = useNavigation()
const [display, setDisplay] = useState("none") const [display, setDisplay] = useState("none")
const changeListVisibility = () => { const changeListVisibility = () => {

@ -10,7 +10,7 @@ type Profile = {
} }
export default function ProfileElement(props : Profile) { export default function ProfileElement(props : Profile) {
const { colors, toggleColors } = useContext(ColorContext) const colors = useContext(ColorContext).colors
const [waiting, setWaiting] = useState("none") const [waiting, setWaiting] = useState("none")
const [separator, setSeparator] = useState("none") const [separator, setSeparator] = useState("none")

@ -15,7 +15,7 @@ type ProfileProps = {
export default function ProfileModification(props: ProfileProps) { export default function ProfileModification(props: ProfileProps) {
const [name, onChangeName] = useState(props.name); const [name, onChangeName] = useState(props.name);
const { colors, toggleColors } = useContext(ColorContext); const colors = useContext(ColorContext).colors;
let imageSource let imageSource
if (props.avatar == "plus.png"){ if (props.avatar == "plus.png"){

@ -19,7 +19,7 @@ type Profile = {
} }
export default function ProfileSelection(props: ProfileSelectionProps) { export default function ProfileSelection(props: ProfileSelectionProps) {
const { colors, toggleColors } = useContext(ColorContext); const colors = useContext(ColorContext).colors;
const [cpt, setCpt] = useState(0); const [cpt, setCpt] = useState(0);
const decreaseCounter = () => { const decreaseCounter = () => {

Loading…
Cancel
Save