From 60749d3b8c5ec1127edae34f403ede203c2c0003 Mon Sep 17 00:00:00 2001 From: Ehsan Date: Mon, 9 Sep 2024 18:22:10 +0330 Subject: [PATCH] change design dashboard & side booking page --- app/booking/[slug]/page.js | 2 + app/component/element/AutoCompleteSelect.js | 7 ++- components/booking/date/PlaceVisit.js | 1 - components/booking/date/index.js | 6 +-- components/booking/index.js | 4 +- components/booking/information/Detail.js | 44 +++++++++++-------- components/booking/information/index.js | 4 +- .../dashboard/userAccount/ContentTabs.js | 28 ++++++++---- .../tabs/turns/isTurnsDetails/DetailLg.js | 12 ++++- components/icons/DownloadD.js | 11 +++++ 10 files changed, 79 insertions(+), 40 deletions(-) create mode 100644 components/icons/DownloadD.js diff --git a/app/booking/[slug]/page.js b/app/booking/[slug]/page.js index 5c2b81e..77dfd10 100644 --- a/app/booking/[slug]/page.js +++ b/app/booking/[slug]/page.js @@ -53,7 +53,9 @@ function Booking({ params: { slug } }) { {elements[step]} diff --git a/app/component/element/AutoCompleteSelect.js b/app/component/element/AutoCompleteSelect.js index db0af9c..6c3b25a 100644 --- a/app/component/element/AutoCompleteSelect.js +++ b/app/component/element/AutoCompleteSelect.js @@ -25,9 +25,6 @@ function AutoCompleteSelect({ list, isError, updateData, name, label }) { borderRadius: 2, padding: '5px 16px !important' }, - '& .MuiOutlinedInput-notchedOutline': { - border: isError ? '1px solid red' : '' - }, '& .MuiOutlinedInput-notchedOutline': { border: '1px solid #D7D7D7' }, @@ -36,8 +33,10 @@ function AutoCompleteSelect({ list, isError, updateData, name, label }) { }, '& .muirtl-1kiro5a-MuiInputBase-root-MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline': { border: '1px solid #5559CE !important' + }, + '& .MuiOutlinedInput-notchedOutline': { + border: isError ? '1px solid red !important' : '' } - }} renderInput={params =>

جزئیات نوبت

- +
) diff --git a/components/dashboard/userAccount/ContentTabs.js b/components/dashboard/userAccount/ContentTabs.js index 1f03491..24a1e49 100644 --- a/components/dashboard/userAccount/ContentTabs.js +++ b/components/dashboard/userAccount/ContentTabs.js @@ -13,6 +13,7 @@ import IsTurnsDetails from "./tabs/turns/isTurnsDetails"; import ArrowRightD from "@/components/icons/ArrowRightD"; import { Button } from "@mui/material"; import NotfoundDashboard from "./NotfoundDashboard"; +import DownloadD from "@/components/icons/DownloadD"; const listTab = ['حساب کاربری', 'نوبت های من', 'تراکنش های من', 'نظرات من', 'پیام ها']; @@ -44,14 +45,25 @@ function ContentTabs({ user, value, setValue, isOpenSide, setIsOpenSide }) { shadow-none md:shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)] bg-transparent md:bg-[#FFF]" > - +
+ + {value === 1 && isTurnsDetails ? ( + + ) : undefined} +
{isTurnsDetails ? : ( <> diff --git a/components/dashboard/userAccount/tabs/turns/isTurnsDetails/DetailLg.js b/components/dashboard/userAccount/tabs/turns/isTurnsDetails/DetailLg.js index 6cff72f..02876f2 100644 --- a/components/dashboard/userAccount/tabs/turns/isTurnsDetails/DetailLg.js +++ b/components/dashboard/userAccount/tabs/turns/isTurnsDetails/DetailLg.js @@ -3,6 +3,7 @@ import TextLoading from '@/app/component/loading/Text'; import CalendarD from '@/components/icons/CalendarD'; import CallD from '@/components/icons/CallD'; import ClockClinic from '@/components/icons/ClockClinic'; +import DownloadD from '@/components/icons/DownloadD'; import LocationClinic from '@/components/icons/LocationClinic'; import RoutingC from '@/components/icons/RoutingC'; import TicketD from '@/components/icons/TicketD'; @@ -74,12 +75,21 @@ function DetailLg({ user, loading }) { -
+

مبلغ پرداخت شده : {data.amount_paid} تومان

+
) } diff --git a/components/icons/DownloadD.js b/components/icons/DownloadD.js new file mode 100644 index 0000000..a3e896c --- /dev/null +++ b/components/icons/DownloadD.js @@ -0,0 +1,11 @@ +function DownloadD() { + return ( + + + + + + ) +} + +export default DownloadD \ No newline at end of file