graph works
This commit is contained in:
parent
84dbae49c1
commit
4b06a217c5
2 changed files with 16 additions and 43 deletions
|
|
@ -1,33 +1,13 @@
|
|||
import React from 'react';
|
||||
import { ScrollView, StyleSheet, View } from 'react-native';
|
||||
import { SafeAreaView } from 'react-native';
|
||||
import { Graph } from '../../../components';
|
||||
import { useTheme } from '../../contexts/ThemeContext';
|
||||
|
||||
export default function Page() {
|
||||
const { colors } = useTheme();
|
||||
|
||||
// Mock data #TODO Database einbinden
|
||||
// what to do when amount too small?
|
||||
|
||||
const spent = 120.75;
|
||||
const budget = 696.96;
|
||||
|
||||
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: colors.backgroundColor,
|
||||
marginTop: 50,
|
||||
alignItems: 'center',
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<ScrollView>
|
||||
<SafeAreaView style={{flex: 1}}>
|
||||
|
||||
<Graph/>
|
||||
<Graph/>
|
||||
|
||||
|
||||
{/* <DebugMenu />
|
||||
|
|
@ -45,7 +25,6 @@ export default function Page() {
|
|||
<Widget>
|
||||
<SavingsOverview/>
|
||||
</Widget> */}
|
||||
</ScrollView>
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue