diff --git a/src/components/History/TopHxBox.jsx b/src/components/History/TopHxBox.jsx new file mode 100644 index 0000000..052d003 --- /dev/null +++ b/src/components/History/TopHxBox.jsx @@ -0,0 +1,137 @@ +import React, { useState } from "react"; +import MarketVisitorAnalytic from "../Charts/MarketVisitorAnalytic"; +import SelectBox from "../Helpers/SelectBox"; +//import SellHistoryWidget from "./SellHistoryWidget"; +import TopHxWidgetBox from "./TopHxWidgetBox"; + +export default function TopHxBox({ className }) { + const [currencyDataLvl, setCurrencyDataLvl] = useState([ + "Jan 1", + "Jan 2", + "Jan 3", + "Jan 4", + "Jan 5", + "Jan 6", + "Jan 7", + "Jan 8", + "Jan 9", + "Jan 10", + "Jan 11", + "Jan 12", + "Jan 13", + "Jan 14", + "Jan 15", + ]); + const filterDatas = ["Last 15 days", "Last 7 days", "Last Month"]; + const [filterDataSet, setFilterDataSet] = useState([ + 50, 30, 100, 20, 50, 30, 100, 20, 50, 30, 100, 20, 50, 30, 100, + ]); + const dataSetHandler = (value) => { + if (value === "Last Month") { + setCurrencyDataLvl([ + "Jan 1", + "Jan 2", + "Jan 3", + "Jan 4", + "Jan 5", + "Jan 6", + "Jan 7", + "Jan 8", + "Jan 9", + "Jan 10", + "Jan 11", + "Jan 12", + "Jan 13", + "Jan 14", + "Jan 15", + "Jan 16", + "Jan 17", + "Jan 18", + "Jan 19", + "Jan 20", + "Jan 21", + "Jan 22", + "Jan 23", + "Jan 24", + "Jan 25", + "Jan 26", + "Jan 27", + "Jan 28", + "Jan 29", + "Jan 30", + ]); + setFilterDataSet([ + 50, 30, 100, 20, 50, 30, 100, 20, 50, 30, 100, 20, 50, 30, 100, 50, 30, + 50, 30, 100, 20, 50, 30, 100, 20, 50, 30, 100, 20, 50, 30, 100, + ]); + } else if (value === "Last 7 days") { + setCurrencyDataLvl([ + "Jan 1", + "Jan 2", + "Jan 3", + "Jan 4", + "Jan 5", + "Jan 6", + "Jan 7", + ]); + setFilterDataSet([50, 30, 100, 20, 50, 30, 100]); + } else { + setCurrencyDataLvl([ + "Jan 1", + "Jan 2", + "Jan 3", + "Jan 4", + "Jan 5", + "Jan 6", + "Jan 7", + "Jan 8", + "Jan 9", + "Jan 10", + "Jan 11", + "Jan 12", + "Jan 13", + "Jan 14", + "Jan 15", + ]); + setFilterDataSet([ + 50, 30, 100, 20, 50, 30, 100, 20, 50, 30, 100, 20, 50, 30, 100, + ]); + } + }; + return ( +
+
+ +
+
+
+
+
+

+ Purchases +

+
+ +
+
+ +
+
+
+
+ +
+ +
+ +
+
+ ); +} diff --git a/src/components/History/TopHxWidgetBox.jsx b/src/components/History/TopHxWidgetBox.jsx new file mode 100644 index 0000000..65765b4 --- /dev/null +++ b/src/components/History/TopHxWidgetBox.jsx @@ -0,0 +1,36 @@ +import React from "react"; +import SellHistoryAnalytic from "../Charts/SellHistoryAnalytic"; + +export default function TopHxWidgetBox() { + return ( +
+
+
+
+

+ Activities +

+
+
+
+ +

+ Avg: Sell Price +

+
+
+ +

+ Total Sell +

+
+
+ Current Week +
+
+ +
+
+
+ ); +} diff --git a/src/components/History/index.jsx b/src/components/History/index.jsx index a9bcc69..369cb7f 100644 --- a/src/components/History/index.jsx +++ b/src/components/History/index.jsx @@ -4,6 +4,7 @@ import SellHistoryMarketVisitorAnalytic from "../Home/SellHistoryMarketVisitorAn import Layout from "../Partials/Layout"; import HistoryTable from "./HistoryTable"; import MarketHistorySection from "./MarketHistorySection"; +import TopHxBox from "./TopHxBox"; export default function History() { return ( @@ -146,8 +147,8 @@ export default function History() { - - + {/**/} +