location-menu #5

Merged
whysman merged 26 commits from location-menu into master 2025-03-30 01:56:40 +00:00
3 changed files with 21 additions and 2 deletions
Showing only changes of commit 77fa3417ef - Show all commits

View File

@ -1,4 +1,4 @@
import {Appbar, Button, Text, useTheme} from "react-native-paper"; import {Appbar, Button, Portal, Text, useTheme} from "react-native-paper";
import {View} from "react-native"; import {View} from "react-native";
import styles from "@/assets/styles"; import styles from "@/assets/styles";
import React from "react"; import React from "react";

18
components/Broken.tsx Normal file
View File

@ -0,0 +1,18 @@
import {Avatar, Dialog, Portal, useTheme} from "react-native-paper";
import React from "react";
const theme = useTheme();
const Broken = () => {
return (
<Dialog.Content>
<Dialog.Title style={{color: theme.colors.onBackground, textAlign: 'center', fontFamily: "Light"}}>The Internet is a Series of Tubes</Dialog.Title>
<Avatar.Image
source={require("../assets/images/broken.png")}
style={{ alignSelf: 'center', marginBottom: 15 }}
/>
</Dialog.Content>
);
};
export default Broken;

View File

@ -1,5 +1,6 @@
import { Dialog, Portal, useTheme } from "react-native-paper"; import { Dialog, Portal, useTheme } from "react-native-paper";
import React, {useEffect} from "react"; import React, {useEffect} from "react";
import Broken from "@/components/Broken";
interface LocationProps { interface LocationProps {
visible: boolean; visible: boolean;
@ -15,7 +16,7 @@ const Location: React.FC<LocationProps> = ({ visible }) => {
return ( return (
<Portal> <Portal>
<Dialog visible={visible} > <Dialog visible={visible} >
<Dialog.Title style={{ color: theme.colors.onBackground, textAlign: 'center', fontFamily: "Light"}}>Choose Your Location</Dialog.Title> <Broken />
</Dialog> </Dialog>
</Portal> </Portal>
) )