Commit b0fff1c6 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

chage to view order in deposites

parent da2d8128
import * as React from "react";
import Link from "@mui/material/Link";
import Link from "next/link";
import Typography from "@mui/material/Typography";
import Title from "./Title";
import { AdminOrderContext } from "../layout/AdminLayout";
......@@ -30,8 +30,8 @@ export default function Deposits() {
total += Number(adminOrder.value[i].total_price);
}
}
setMonth(month_now)
setYear(year_now)
setMonth(month_now);
setYear(year_now);
setTotalSelling(total);
}, [user, adminOrder]);
......@@ -45,8 +45,8 @@ export default function Deposits() {
on {month}, {year}
</Typography>
<div>
<Link color="primary" href="#" onClick={preventDefault}>
View balance
<Link className="text-blue-600" href="/admin/order">
View orders
</Link>
</div>
</React.Fragment>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment