From 4549b243af644a2b02e889794341ea81d2bb05a1 Mon Sep 17 00:00:00 2001 From: G Date: Mon, 1 Jul 2024 15:51:44 +0000 Subject: [PATCH] popping a modal when the filter button is clicked. will work on the content of the modal. --- src/screens/TransactionHistoryScreen.tsx | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/src/screens/TransactionHistoryScreen.tsx b/src/screens/TransactionHistoryScreen.tsx index a793c5f..9acc90c 100644 --- a/src/screens/TransactionHistoryScreen.tsx +++ b/src/screens/TransactionHistoryScreen.tsx @@ -2,15 +2,20 @@ import Input from "@components/Input"; import TransactionInformationsItem from "@components/TransactionInformationsItem"; import BackgroundWithBeasyIconAndWhiteContentArea from "@components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea"; import Box from "@components/bases/Box"; +import Text from "@components/bases/Text"; import useTransactionsHistory from "@hooks/useTransactionsHistory"; import { LOG } from "@logger"; +import { useState } from "react"; import { RefreshControl, ScrollView } from "react-native"; +import Icon from "react-native-vector-icons/Ionicons"; const log = LOG.extend("TransactionHistoryScreen"); const TransactionHistoryScreen = () => { log.verbose("TransactionHistoryScreen"); + const [showFiltersModal, setShowFiltersModal] = useState(false); + const { transactionsHistory: data, isLoading, @@ -22,8 +27,28 @@ const TransactionHistoryScreen = () => { return ( <> - - + {showFiltersModal && } + {/* */} + + + + + + setShowFiltersModal(true)} + /> + } @@ -53,3 +78,52 @@ const TransactionHistoryScreen = () => { }; export default TransactionHistoryScreen; + +interface FiltersModalProps { + setShowFiltersModal: React.Dispatch>; +} +const FiltersModal: React.FC = ({ setShowFiltersModal }) => { + return ( + <> + {/* Overlay */} + + + {/* Content */} + + + + + + Paramétrage du filtre + + setShowFiltersModal(false)} + /> + + + + + ); +}; -- libgit2 0.27.1