Skip to content

Commit

Permalink
Deploy: production
Browse files Browse the repository at this point in the history
[UPDATE] : update  profile and home page
  • Loading branch information
mojtaba1180 authored May 30, 2023
2 parents 13e5529 + d027844 commit b1d1677
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions src/containers/boxes.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { QueryCache } from "@tanstack/react-query";
import { Divider } from "antd";
import { Link } from "react-router-dom";

function Boxes() {
// eslint-disable-next-line prettier/prettier
const queryCache = new QueryCache();

const query = queryCache.findAll(["user-info"]);

console.log(query);
const itemClass =
"w-full h-20 border-2 flex border-[var(--tg-theme-button-color)] border-opacity-80 items-center justify-center rounded-lg ";
return (
Expand All @@ -16,10 +22,10 @@ function Boxes() {
<Link className={itemClass} to="/profile">
حساب کاربری
</Link>
<Link className={itemClass} to="/admin">
{/* <Link className={itemClass} to="/admin">
ادمین
</Link>
<Link className={itemClass} to="/cart">
</Link> */}
<Link className={`${itemClass} col-span-2 `} to="/cart">
سبد خرید
</Link>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/user/profile/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ function UserProfileHome() {
const BoxItem = [
{
title: "سفارش در حال انجام",
total: 1
total: 0
},
{
title: "سفارش تکمیل شده",
total: 5
total: 0
},
{
title: "سفارش در انتظار بررسی",
total: 2
total: 0
},
{
title: "سفارش لغو شده",
total: 8
total: 0
}
];
return (
Expand Down

1 comment on commit b1d1677

@vercel
Copy link

@vercel vercel bot commented on b1d1677 May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.