From c0320654a29567671fefc8f8f5737eab36adc564 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Tue, 26 Aug 2025 09:47:52 +0330 Subject: [PATCH] favorite page and comment page --- src/app/profile/comments/page.tsx | 89 +++++++++++++++++++++++++++++ src/app/profile/components/Menu.tsx | 18 ++++-- src/app/profile/favorite/page.tsx | 23 ++++++++ src/app/profile/page.tsx | 2 +- 4 files changed, 125 insertions(+), 7 deletions(-) create mode 100644 src/app/profile/comments/page.tsx create mode 100644 src/app/profile/favorite/page.tsx diff --git a/src/app/profile/comments/page.tsx b/src/app/profile/comments/page.tsx new file mode 100644 index 0000000..421033d --- /dev/null +++ b/src/app/profile/comments/page.tsx @@ -0,0 +1,89 @@ +import withLayout from '@/hoc/withLayout' +import { NextPage } from 'next' +import Menu from '../components/Menu' +import Image from 'next/image' + +const Comments: NextPage = () => { + return ( +
+ + +
+
+ comment + +
+
+
+ نان بربری سنتی سبوس دار +
+
+ 2 آذر 1401 +
+
+ +
+ خیلی راضیم از خریدم +
+
+
+
+ comment + +
+
+
+ نان بربری سنتی سبوس دار +
+
+ 2 آذر 1401 +
+
+ +
+ خیلی راضیم از خریدم +
+
+
+
+ comment + +
+
+
+ نان بربری سنتی سبوس دار +
+
+ 2 آذر 1401 +
+
+ +
+ خیلی راضیم از خریدم +
+
+
+
+
+ ) +} + +export default withLayout(Comments) \ No newline at end of file diff --git a/src/app/profile/components/Menu.tsx b/src/app/profile/components/Menu.tsx index 08dda08..e182a62 100644 --- a/src/app/profile/components/Menu.tsx +++ b/src/app/profile/components/Menu.tsx @@ -3,15 +3,21 @@ import MenuItem from './MenuItem' import { Button } from '@/components/ui/button' import { LogoutCurve } from 'iconsax-react' -const Menu: FC = () => { +type Props = { + pageActive: 'profile' | 'favorite' | 'comments' | 'chat' | 'orders' +} + +const Menu: FC = (props) => { + const { pageActive } = props + return (
- - - - - + + + + +