feat: dashboard is added
This commit is contained in:
parent
8b790b7601
commit
09fc5dc367
5 changed files with 892 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
function App() {
|
||||
const [entity, setEntity] = React.useState("all");
|
||||
const [screen, setScreen] = React.useState("review");
|
||||
const [screen, setScreen] = React.useState("dashboard");
|
||||
const [query, setQuery] = React.useState("");
|
||||
const [sort, setSort] = React.useState("date-desc");
|
||||
const [transactions, setTransactions] = React.useState(window.AKEFIN_DATA.transactions);
|
||||
|
|
@ -86,6 +86,7 @@ function App() {
|
|||
case "switch-personal": setEntity("personal"); break;
|
||||
case "switch-9tfox": setEntity("tfox"); break;
|
||||
case "switch-finacode": setEntity("finacode"); break;
|
||||
case "go-dashboard": setScreen("dashboard"); break;
|
||||
case "go-review": setScreen("review"); break;
|
||||
case "go-rules": setScreen("rules"); break;
|
||||
case "go-ledger": setScreen("ledger"); break;
|
||||
|
|
@ -128,6 +129,7 @@ function App() {
|
|||
<div className="ak-body">
|
||||
<Sidebar screen={screen} setScreen={setScreen} counts={counts} />
|
||||
<main className="ak-main">
|
||||
{screen === "dashboard" && <DashboardScreen entity={entity} onJump={setScreen} />}
|
||||
{screen === "review" && (
|
||||
<div className="review-screen">
|
||||
<ReviewQueue entity={entity} transactions={transactions}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue