From 190f9489810fd7e8267f6fe3bf27099ae2c70d75 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Mon, 23 Aug 2021 15:40:10 -0300 Subject: [PATCH] Starting to implement data filter modal --- src/app/components/MapDataMenu.js | 142 ++++++++++++++++++++++++ src/app/components/map/OpenStreetMap.js | 2 + src/app/config/colors.js | 2 +- 3 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 src/app/components/MapDataMenu.js diff --git a/src/app/components/MapDataMenu.js b/src/app/components/MapDataMenu.js new file mode 100644 index 0000000..787e61f --- /dev/null +++ b/src/app/components/MapDataMenu.js @@ -0,0 +1,142 @@ +import React, { useState } from "react"; + +import { View, StyleSheet, Text, Button, TouchableOpacity } from "react-native"; +import SelfClosingModal from "./SelfClosingModal"; +import colors from "../config/colors"; +import { FontAwesome5 } from '@expo/vector-icons'; +import { MaterialIcons } from "@expo/vector-icons"; +import { MaterialCommunityIcons } from "@expo/vector-icons"; +import { Shadow } from "react-native-shadow-2"; + +function DataMenuHeader({ setShowModal }) { + return ( + + DADOS + + setShowModal(null)} + > + + + + ); +} + +function DataOriginSelector() { + const [dataOriginToShow, setDataOriginToShow] = useState("oficial") + const bgToUse = (selected) => dataOriginToShow == selected ? colors.secondary : colors.gray; + + return ( + + + setDataOriginToShow("oficial")} + > + + OFICIAL + + + + setDataOriginToShow("citzen")} + > + + CIDADÃO + + + + ); +} + +function DataMenuBody({ setShowModal }) { + return ( + + + + + ); +} + +export default function MapDataMenu(props) { + const [showModal, setShowModal] = useState(null); + return ( + +