Files
actual/packages/desktop-client/src/components/tutorial/BudgetInitial.js
2022-07-24 08:53:05 +01:00

46 lines
1.4 KiB
JavaScript

import React, { useState } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actions from 'loot-core/src/client/actions';
import { View, P, Button } from 'loot-design/src/components/common';
import { Title, Standalone, useMinimized } from './common';
import Navigation from './Navigation';
function BudgetInitial({ accounts, navigationProps }) {
let [minimized, toggle] = useMinimized();
return (
<Standalone>
<Title>Go ahead and budget your money</Title>
{!minimized && (
<React.Fragment>
<P>
You should see all of your current accounts' balance available to
budget. Click on the budgeted column for a category create a budget.
Keep doing this until your "To Budget" amount is zero.
</P>
<P>
Don't worry too much about your initial budget. Just guess. You'll
learn more about your spending in the first couple months.
</P>
</React.Fragment>
)}
<Navigation
{...navigationProps}
leftContent={
<Button bare onClick={toggle}>
{minimized ? 'Show more' : 'Show less'}
</Button>
}
/>
</Standalone>
);
}
export default connect(
state => ({
accounts: state.queries.accounts
}),
dispatch => bindActionCreators(actions, dispatch)
)(BudgetInitial);