clean des composants, dossiers

This commit is contained in:
Rochas
2025-12-11 21:24:28 +01:00
parent 6446c3f975
commit 7092d09ba8
26 changed files with 46 additions and 54 deletions

View File

@@ -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 = {

View File

@@ -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 = {

View File

@@ -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);

View File

@@ -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)
}

View File

@@ -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");

View File

@@ -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';