finishing up
This commit is contained in:
parent
8b68a7b7b0
commit
c0a70a0ed5
2 changed files with 5 additions and 22 deletions
|
|
@ -18,25 +18,7 @@ export default function Page() {
|
||||||
const spent = 120.75;
|
const spent = 120.75;
|
||||||
const budget = 696.96;
|
const budget = 696.96;
|
||||||
|
|
||||||
const BudgetData = [
|
|
||||||
{ name: 'Utilities', color: '#20B2AA', maxValue: 80, currentValue: 46 },
|
|
||||||
{ name: 'Food', color: '#FF6347', maxValue: 88, currentValue: 31 },
|
|
||||||
];
|
|
||||||
|
|
||||||
const SavingsData = [
|
|
||||||
{ name: 'Education', color: '#FF6347', maxValue: 135, currentValue: 0 },
|
|
||||||
{ name: 'Rent', color: '#DA70D6', maxValue: 140, currentValue: 96 },
|
|
||||||
{ name: 'Food', color: '#F08080', maxValue: 84, currentValue: 78 },
|
|
||||||
{ name: 'Healthcare', color: '#20B2AA', maxValue: 134, currentValue: 48 },
|
|
||||||
{ name: 'Healthcare', color: '#32CD32', maxValue: 119, currentValue: 69 },
|
|
||||||
{ name: 'Clothing', color: '#32CD32', maxValue: 115, currentValue: 99 },
|
|
||||||
];
|
|
||||||
|
|
||||||
const categoryData = [
|
|
||||||
{ category: 'Food', value: 50 },
|
|
||||||
{ category: 'Rent', value: 300 },
|
|
||||||
{ category: 'Utilities', value: 100 },
|
|
||||||
];
|
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
|
|
@ -51,6 +33,9 @@ export default function Page() {
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<DebugMenu />
|
<DebugMenu />
|
||||||
|
<Widget title='"Financial" Tips' backgroundColor='orange'>
|
||||||
|
<FinancialAdvice/>
|
||||||
|
</Widget>
|
||||||
<Widget title="Budget Overview" />
|
<Widget title="Budget Overview" />
|
||||||
<Widget>
|
<Widget>
|
||||||
<BudgetRemaining/>
|
<BudgetRemaining/>
|
||||||
|
|
@ -59,9 +44,6 @@ export default function Page() {
|
||||||
<Widget>
|
<Widget>
|
||||||
<BudgetOverview/>
|
<BudgetOverview/>
|
||||||
</Widget>
|
</Widget>
|
||||||
<Widget>
|
|
||||||
<FinancialAdvice/>
|
|
||||||
</Widget>
|
|
||||||
<Widget>
|
<Widget>
|
||||||
<SavingsOverview/>
|
<SavingsOverview/>
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ interface WidgetProps {
|
||||||
const Widget: React.FC<WidgetProps> = ({ title, text, children, image, backgroundColor }) => {
|
const Widget: React.FC<WidgetProps> = ({ title, text, children, image, backgroundColor }) => {
|
||||||
const { colors } = useTheme();
|
const { colors } = useTheme();
|
||||||
|
|
||||||
|
|
||||||
const actualBackgroundColor = backgroundColor ? backgroundColor : colors.widgetBackgroundColor;
|
const actualBackgroundColor = backgroundColor ? backgroundColor : colors.widgetBackgroundColor;
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
|
|
|
||||||
Reference in a new issue