Added broken page to bottomnav
This commit is contained in:
parent
294ee04b34
commit
bd8d1fb31e
@ -3,6 +3,7 @@ import { View } from "react-native";
|
|||||||
import styles from "@/assets/styles";
|
import styles from "@/assets/styles";
|
||||||
import React, {useState} from "react";
|
import React, {useState} from "react";
|
||||||
import Location from "@/components/Location";
|
import Location from "@/components/Location";
|
||||||
|
import Broken from "@/components/Broken";
|
||||||
|
|
||||||
|
|
||||||
interface BNProps {
|
interface BNProps {
|
||||||
@ -12,6 +13,7 @@ const BottomNav: React.FC<BNProps> = ({ isProfileActive }) => {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const [menuVisible, setMenuVisible] = useState(false);
|
const [menuVisible, setMenuVisible] = useState(false);
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={ isProfileActive && { display: 'none' }}>
|
<View style={ isProfileActive && { display: 'none' }}>
|
||||||
<View style={{ backgroundColor: theme.colors.background }}>
|
<View style={{ backgroundColor: theme.colors.background }}>
|
||||||
@ -30,7 +32,7 @@ const BottomNav: React.FC<BNProps> = ({ isProfileActive }) => {
|
|||||||
<Portal>
|
<Portal>
|
||||||
<Dialog visible={menuVisible} onDismiss={() => setMenuVisible(false)} style={{ backgroundColor: theme.colors.primaryContainer, maxHeight: 400 }}>
|
<Dialog visible={menuVisible} onDismiss={() => setMenuVisible(false)} style={{ backgroundColor: theme.colors.primaryContainer, maxHeight: 400 }}>
|
||||||
<Dialog.Title style={{ color: theme.colors.primary, textAlign: 'center' }}>Location</Dialog.Title>
|
<Dialog.Title style={{ color: theme.colors.primary, textAlign: 'center' }}>Location</Dialog.Title>
|
||||||
<Location />
|
<Broken />
|
||||||
<Dialog.Actions style={{ justifyContent: "center" }}>
|
<Dialog.Actions style={{ justifyContent: "center" }}>
|
||||||
<Button onPress={() => setMenuVisible(false)} mode="contained" style={{ backgroundColor: theme.colors.inversePrimary }} labelStyle={{ color: theme.colors.primary }}>
|
<Button onPress={() => setMenuVisible(false)} mode="contained" style={{ backgroundColor: theme.colors.inversePrimary }} labelStyle={{ color: theme.colors.primary }}>
|
||||||
Close
|
Close
|
||||||
|
Loading…
Reference in New Issue
Block a user