clean des composants, dossiers
This commit is contained in:
@@ -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