mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-05 18:40:01 -06:00
getting frontend structure staged
This commit is contained in:
27
App.tsx
27
App.tsx
@@ -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>
|
||||
);
|
||||
|
||||
0
components/Artist/component.tsx
Normal file
0
components/Artist/component.tsx
Normal file
0
components/Home/component.tsx
Normal file
0
components/Home/component.tsx
Normal file
0
components/Item/component.tsx
Normal file
0
components/Item/component.tsx
Normal file
8
components/Login/component.tsx
Normal file
8
components/Login/component.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Text } from "react-native";
|
||||
|
||||
function Login(): React.JSX.Element {
|
||||
|
||||
return (
|
||||
<Text></Text>
|
||||
);
|
||||
}
|
||||
0
components/Search/component.tsx
Normal file
0
components/Search/component.tsx
Normal file
0
components/Settings/component.tsx
Normal file
0
components/Settings/component.tsx
Normal file
Reference in New Issue
Block a user