Fixed theme incorrectly placed

This commit is contained in:
whysman 2025-03-28 00:22:22 -04:00
parent bd8d1fb31e
commit 2b4f13cdb7

View File

@ -1,19 +1,20 @@
import {Dialog, Title, useTheme} from "react-native-paper"; import {Title, useTheme} from "react-native-paper";
import { Image } from "react-native"; import { Image, View } from "react-native";
import React from "react"; import React from "react";
const theme = useTheme();
const Broken = () => { const Broken = () => {
const theme = useTheme();
return ( return (
<Dialog.Content> <View>
<Title style={{color: theme.colors.onBackground, fontSize: 16, textAlign: 'center', fontFamily: "Light"}}>The Internet is a Series of Tubes</Title> <Title style={{color: theme.colors.onBackground, fontSize: 16, textAlign: 'center', fontFamily: "Light"}}>The Internet is a Series of Tubes</Title>
<Image <Image
source={require("../assets/images/broken.png")} source={require("../assets/images/broken.png")}
style={{ alignSelf: 'center', resizeMode: "contain", height: 400/3 }} style={{ alignSelf: 'center', resizeMode: "contain", height: 400/3 }}
/> />
<Title style={{color: theme.colors.onBackground, fontSize: 16, textAlign: 'center', fontFamily: "Light"}}>And these aren't connected. {"\n"} (We're still working on this part.)</Title> <Title style={{color: theme.colors.onBackground, fontSize: 16, textAlign: 'center', fontFamily: "Light"}}>And these aren't connected. {"\n"} (We're still working on this part.)</Title>
</Dialog.Content> </View>
); );
}; };