Skip to content

Commit ff2af6b

Browse files
committed
swap order of date inputs and plot
1 parent 74f2e84 commit ff2af6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Transaction/TransactionStats.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function TransactionStats() {
5656
if (incomeByDay.length > 0)
5757
return (
5858
<div>
59+
<h3>Net Income vs. Date</h3>
5960
<LineChart width={600} height={400} data={incomeByDay}>
6061
<CartesianGrid strokeDasharray="3 3" />
6162
<XAxis label="Date" dataKey="date" interval="preserveEnd" />
@@ -102,6 +103,7 @@ function TransactionStats() {
102103
if (loading) return <ReactLoading color="#e26d5c" />;
103104
return (
104105
<>
106+
<h3>Transaction List</h3>
105107
{salesInRange.map((transaction) => (
106108
<TransactionListItem
107109
transaction={transaction}
@@ -116,8 +118,10 @@ function TransactionStats() {
116118
<div className="container">
117119
<Header />
118120
<HeaderPadding />
119-
<div className="SalesPlot">{renderPlot()}</div>
120121
<div className="DateInputs">{dateInputs()}</div>
122+
<div className="SalesPlot">{renderPlot()}</div>
123+
<Header />
124+
<HeaderPadding />
121125
<div className="FilteredData">{filteredList()}</div>
122126
</div>
123127
);

0 commit comments

Comments
 (0)