clean des composants, dossiers
This commit is contained in:
@@ -3,7 +3,7 @@ import { } from 'expo-router';
|
||||
import React from 'react';
|
||||
|
||||
|
||||
import { HapticTab } from '@/components/haptic-tab';
|
||||
import { HapticTab } from '@/components/expoExempleComponents/haptic-tab';
|
||||
import { IconSymbol } from '@/components/ui/icon-symbol';
|
||||
import { Colors } from '@/constants/theme';
|
||||
import { useColorScheme } from '@/hooks/use-color-scheme';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import ChantierSummary from '@/components/chantierSummary';
|
||||
import SelectChantier from '@/components/selectChantier';
|
||||
import SetStatus from '@/components/setStatus';
|
||||
import { ThemedView } from '@/components/themed-view';
|
||||
import { ThemedView } from '@/components/theme/themed-view';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { StyleSheet, ScrollView, Button, TextInput, Text } from 'react-native';
|
||||
import { useChantier } from '../ContextChantier';
|
||||
@@ -9,9 +9,9 @@ import { useRessources } from '../ContextRessource';
|
||||
import { useUser } from '../ContextUser';
|
||||
import { getRessources, getUsers, addChantier } from '@/services/ressourcesService';
|
||||
import { Chantier, Ressources } from '@/class/class';
|
||||
import { ThemedText } from '@/components/themed-text';
|
||||
import { ThemedButton } from '@/components/themed-button';
|
||||
import { ThemedTextInput } from '@/components/themed-textinput';
|
||||
import { ThemedText } from '@/components/theme/themed-text';
|
||||
import { ThemedButton } from '@/components/theme/themed-button';
|
||||
import { ThemedTextInput } from '@/components/theme/themed-textinput';
|
||||
|
||||
export default function AddChantier() {
|
||||
const { chantier, setChantier } = useChantier();
|
||||
@@ -96,19 +96,11 @@ export default function AddChantier() {
|
||||
<ThemedTextInput lvl = {0} style = {styles.input} placeholder='chef de chantier' value= {chefChantier} onChangeText={setChefChantier}/>
|
||||
<ThemedText style={{ fontWeight: "bold", marginTop: 15 }}>Équipe</ThemedText>
|
||||
<SelectChantier
|
||||
data={user}
|
||||
multiple
|
||||
selected={userSelect}
|
||||
onChange={setUserSelect}
|
||||
placeholder="Sélectionner l'équipe"
|
||||
|
||||
/>
|
||||
<Text style={{ fontWeight: "bold", marginTop: 15 }}>Ressources</Text>
|
||||
<SelectChantier
|
||||
data={ressources}
|
||||
multiple
|
||||
selected={ressourcesSelect}
|
||||
onChange={setRessourcesSelect}
|
||||
placeholder="Sélectionner les ressources"
|
||||
|
||||
/>
|
||||
<ThemedButton
|
||||
lvl={1}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Image } from 'expo-image';
|
||||
import { Platform, StyleSheet } from 'react-native';
|
||||
|
||||
import { ExternalLink } from '@/components/external-link';
|
||||
import ParallaxScrollView from '@/components/parallax-scroll-view';
|
||||
import { ExternalLink } from '@/components/expoExempleComponents/external-link';
|
||||
import ParallaxScrollView from '@/components/expoExempleComponents/parallax-scroll-view';
|
||||
import SelectChantier from '@/components/selectChantier';
|
||||
import { ThemedText } from '@/components/themed-text';
|
||||
import { ThemedView } from '@/components/themed-view';
|
||||
import { ThemedText } from '@/components/theme/themed-text';
|
||||
import { ThemedView } from '@/components/theme/themed-view';
|
||||
import { Collapsible } from '@/components/ui/collapsible';
|
||||
import { IconSymbol } from '@/components/ui/icon-symbol';
|
||||
import { Fonts } from '@/constants/theme';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ThemedText } from "@/components/themed-text";
|
||||
import { ThemedTextInput } from "@/components/themed-textinput";
|
||||
import { ThemedView } from "@/components/themed-view";
|
||||
import { ThemedText } from "@/components/theme/themed-text";
|
||||
import { ThemedTextInput } from "@/components/theme/themed-textinput";
|
||||
import { ThemedView } from "@/components/theme/themed-view";
|
||||
import Constants from "expo-constants"; //pour connaître la taille de la barre menu de l'OS en haut
|
||||
import { useLocalSearchParams, useRouter } from "expo-router";
|
||||
import React, { useMemo, useState } from "react";
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ThemedText } from "@/components/themed-text";
|
||||
import { ThemedTextInput } from "@/components/themed-textinput";
|
||||
import { ThemedView } from "@/components/themed-view";
|
||||
import { ThemedText } from "@/components/theme/themed-text";
|
||||
import { ThemedTextInput } from "@/components/theme/themed-textinput";
|
||||
import { ThemedView } from "@/components/theme/themed-view";
|
||||
import Constants from "expo-constants"; //pour connaître la taille de la barre menu de l'OS en haut
|
||||
|
||||
import { ThemedButton } from "@/components/themed-button";
|
||||
import { ThemedButton } from "@/components/theme/themed-button";
|
||||
import { useLocalSearchParams, useRouter } from "expo-router";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { FlatList, Image, StyleSheet, Text, View } from "react-native";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import ChantierSummary from '@/components/chantierSummary';
|
||||
import SelectChantier from '@/components/selectChantier';
|
||||
import SetStatus from '@/components/setStatus';
|
||||
import { ThemedView, } from '@/components/themed-view';
|
||||
import { ThemedView, } from '@/components/theme/themed-view';
|
||||
import Constants from 'expo-constants'; //pour connaître la taille de la barre menu de l'OS en haut
|
||||
import React from 'react';
|
||||
import { StyleSheet, View,Text } from 'react-native';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Image } from 'expo-image';
|
||||
import { Platform, StyleSheet } from 'react-native';
|
||||
|
||||
import { HelloWave } from '@/components/hello-wave';
|
||||
import ParallaxScrollView from '@/components/parallax-scroll-view';
|
||||
import { ThemedText } from '@/components/themed-text';
|
||||
import { ThemedView } from '@/components/themed-view';
|
||||
import { HelloWave } from '@/components/expoExempleComponents/hello-wave';
|
||||
import ParallaxScrollView from '@/components/expoExempleComponents/parallax-scroll-view';
|
||||
import { ThemedText } from '@/components/theme/themed-text';
|
||||
import { ThemedView } from '@/components/theme/themed-view';
|
||||
import { Link } from 'expo-router';
|
||||
|
||||
export default function HomeScreen() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// MapScreen.tsx
|
||||
import { ThemedMapView } from '@/components/themed-mapview';
|
||||
import { ThemedMapView } from '@/components/theme/themed-mapview';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { StyleSheet, View, Dimensions, Image, Text } from 'react-native';
|
||||
import MapView, { Marker, Callout, CalloutSubview, PROVIDER_DEFAULT } from 'react-native-maps';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ThemedView } from "@/components/themed-view";
|
||||
import { ThemedView } from "@/components/theme/themed-view";
|
||||
import Constants from "expo-constants"; //pour connaître la taille de la barre menu de l'OS en haut
|
||||
import React from "react";
|
||||
import {StyleSheet, View } from "react-native";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ThemedText } from "@/components/themed-text";
|
||||
import { ThemedTextInput } from "@/components/themed-textinput";
|
||||
import { ThemedView } from "@/components/themed-view";
|
||||
import { ThemedText } from "@/components/theme/themed-text";
|
||||
import { ThemedTextInput } from "@/components/theme/themed-textinput";
|
||||
import { ThemedView } from "@/components/theme/themed-view";
|
||||
import { router } from "expo-router";
|
||||
import {
|
||||
signInWithEmailAndPassword
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Link } from 'expo-router';
|
||||
import { StyleSheet } from 'react-native';
|
||||
|
||||
import { ThemedText } from '@/components/themed-text';
|
||||
import { ThemedView } from '@/components/themed-view';
|
||||
import { ThemedText } from '@/components/theme/themed-text';
|
||||
import { ThemedView } from '@/components/theme/themed-view';
|
||||
|
||||
export default function ModalScreen() {
|
||||
return (
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Chantier } from '@/class/class';
|
||||
import { ThemedView, } from '@/components/themed-view';
|
||||
import { ThemedView, } from '@/components/theme/themed-view';
|
||||
import React from 'react';
|
||||
import { Image, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
|
||||
import { ThemedText } from './themed-text';
|
||||
import { ThemedText } from './theme/themed-text';
|
||||
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Chantier } from '@/class/class';
|
||||
import { ThemedView, } from '@/components/themed-view';
|
||||
import { ThemedView, } from '@/components/theme/themed-view';
|
||||
import React from 'react';
|
||||
import { Image, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
|
||||
import { ThemedText } from './themed-text';
|
||||
import { ThemedText } from './theme/themed-text';
|
||||
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -7,7 +7,7 @@ import Animated, {
|
||||
useScrollOffset,
|
||||
} from 'react-native-reanimated';
|
||||
|
||||
import { ThemedView } from '@/components/themed-view';
|
||||
import { ThemedView } from '@/components/theme/themed-view';
|
||||
import { useColorScheme } from '@/hooks/use-color-scheme';
|
||||
import { useThemeColor } from '@/hooks/use-theme-color';
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function ParallaxScrollView({
|
||||
headerImage,
|
||||
headerBackgroundColor,
|
||||
}: Props) {
|
||||
const backgroundColor = useThemeColor({}, 'background');
|
||||
const backgroundColor = useThemeColor({}, 'background3');
|
||||
const colorScheme = useColorScheme() ?? 'light';
|
||||
const scrollRef = useAnimatedRef<Animated.ScrollView>();
|
||||
const scrollOffset = useScrollOffset(scrollRef);
|
||||
@@ -15,10 +15,10 @@ import {
|
||||
import Animated, {
|
||||
LinearTransition
|
||||
} from "react-native-reanimated";
|
||||
import { ThemedButton } from "./themed-button";
|
||||
import { ThemedText } from "./themed-text";
|
||||
import { ThemedTextInput } from "./themed-textinput";
|
||||
import { ThemedView } from "./themed-view";
|
||||
import { ThemedButton } from "./theme/themed-button";
|
||||
import { ThemedText } from "./theme/themed-text";
|
||||
import { ThemedTextInput } from "./theme/themed-textinput";
|
||||
import { ThemedView } from "./theme/themed-view";
|
||||
|
||||
const screenHeight = Dimensions.get("window").height;
|
||||
const { width, height } = Dimensions.get("window");
|
||||
@@ -57,7 +57,7 @@ export default function SelectChantier() {
|
||||
}
|
||||
|
||||
function onPressAddChantier(){
|
||||
router.push('/(tabs)/ajoute_chantier')
|
||||
router.push('/(tabs)/addChantier')
|
||||
setIsOpen(false)
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { changeChantierStatus } from "@/services/ressourcesService";
|
||||
import { useState } from 'react';
|
||||
import { Dimensions, LayoutAnimation, Modal, Pressable, StyleSheet, View } from 'react-native';
|
||||
import Animated, { LinearTransition } from 'react-native-reanimated';
|
||||
import { ThemedButton } from './themed-button';
|
||||
import { ThemedText } from './themed-text';
|
||||
import { ThemedView } from "./themed-view";
|
||||
import { ThemedButton } from './theme/themed-button';
|
||||
import { ThemedText } from './theme/themed-text';
|
||||
import { ThemedView } from "./theme/themed-view";
|
||||
|
||||
const { width, height } = Dimensions.get("window");
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { PropsWithChildren, useState } from 'react';
|
||||
import { StyleSheet, TouchableOpacity } from 'react-native';
|
||||
|
||||
import { ThemedText } from '@/components/themed-text';
|
||||
import { ThemedView } from '@/components/themed-view';
|
||||
import { ThemedText } from '@/components/theme/themed-text';
|
||||
import { ThemedView } from '@/components/theme/themed-view';
|
||||
import { IconSymbol } from '@/components/ui/icon-symbol';
|
||||
import { Colors } from '@/constants/theme';
|
||||
import { useColorScheme } from '@/hooks/use-color-scheme';
|
||||
|
||||
Reference in New Issue
Block a user