getting frontend structure staged

This commit is contained in:
Violet Caulfield
2024-10-04 06:16:51 -05:00
parent 3e4c10cb31
commit 7cd501fef6
7 changed files with 12 additions and 23 deletions

27
App.tsx
View File

@@ -5,7 +5,7 @@
* @format
*/
import React from 'react';
import React, { useState } from 'react';
import type {PropsWithChildren} from 'react';
import {
SafeAreaView,
@@ -24,14 +24,14 @@ import {
LearnMoreLinks,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
import { JellyfinService } from './api/services/jellyfin-service';
type SectionProps = PropsWithChildren<{
title: string;
}>;
function Section({children, title}: SectionProps): React.JSX.Element {
const isDarkMode = useColorScheme() === 'dark';
const [isDarkMode, setIsDarkMode ] = useState(useColorScheme() === 'dark');
return (
<View style={styles.sectionContainer}>
<Text
@@ -72,26 +72,7 @@ function App(): React.JSX.Element {
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={backgroundStyle}>
<Header />
<View
style={{
backgroundColor: isDarkMode ? Colors.black : Colors.white,
}}>
<Section title="Step One">
Edit <Text style={styles.highlight}>App.tsx</Text> to change this
screen and then come back to see your edits.
</Section>
<Section title="See Your Changes">
<ReloadInstructions />
</Section>
<Section title="Debug">
<DebugInstructions />
</Section>
<Section title="Learn More">
Read the docs to discover what to do next:
</Section>
<LearnMoreLinks />
</View>
</ScrollView>
</SafeAreaView>
);

View File

View File

View File

View File

@@ -0,0 +1,8 @@
import { Text } from "react-native";
function Login(): React.JSX.Element {
return (
<Text></Text>
);
}

View File

View File