add parsing and displaying of transactions

This commit is contained in:
2022-03-24 09:50:47 +01:00
parent c0bbe81b02
commit 48c1aac18c
14 changed files with 324 additions and 74 deletions
+16
View File
@@ -0,0 +1,16 @@
import React from "react";
import styles from "./Overview.module.sass";
export default function Overview(props) {
const accounts = [...new Set(props.transactions.map((txn) => {
return txn.parts.map((part) => {
return part.account;
});
}).flat())];
console.log(accounts)
return <div className={styles.overview_card}>
<pre>
{JSON.stringify(props.stats, null, 2)}
</pre>
</div>;
}
+9
View File
@@ -0,0 +1,9 @@
.overview_card
border-radius: var(--card-radius)
background-color: var(--color-white)
margin: 10px
padding: 20px
width: 36%
height: 20vh
font-family: "Montserrat"
font-weight: 300