Skip to content

Commit 5f44d8a

Browse files
Merge branch 'Dev' into Dev
2 parents 2225b7e + 17d8c3a commit 5f44d8a

File tree

14 files changed

+815
-9
lines changed

14 files changed

+815
-9
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"dependencies": {
2121
"@emailjs/browser": "^3.11.0",
2222
"@headlessui/react": "^2.1.2",
23+
"@hookform/resolvers": "^3.9.0",
2324
"@hookstate/core": "^4.0.1",
2425
"@tanstack/react-query": "^5.22.2",
2526
"@tanstack/react-query-devtools": "^5.24.0",
@@ -36,7 +37,7 @@
3637
"react-dom": "^18.2.0",
3738
"react-fast-marquee": "^1.6.2",
3839
"react-helmet-async": "^2.0.5",
39-
"react-hook-form": "^7.48.2",
40+
"react-hook-form": "^7.52.1",
4041
"react-hot-toast": "^2.4.1",
4142
"react-icons": "^5.2.1",
4243
"react-lazy-load-image-component": "^1.6.0",
@@ -48,7 +49,8 @@
4849
"tailwind-merge": "^2.3.0",
4950
"tailwind-scrollbar-hide": "^1.1.7",
5051
"tailwindcss-animate": "^1.0.7",
51-
"yet-another-react-lightbox": "^3.15.6"
52+
"yet-another-react-lightbox": "^3.15.6",
53+
"yup": "^1.4.0"
5254
},
5355
"devDependencies": {
5456
"@playwright/test": "^1.44.1",

pnpm-lock.yaml

Lines changed: 110 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/admin/events/EventsTable.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,10 @@ function EventsTable() {
225225
}
226226
>
227227
<td
228-
className="hidden sm:table-cell py-4"
229-
id={`checkbox-${row.id}`}
228+
aria-label="events"
229+
className="hidden sm:table-cell py-4 "
230230
>
231231
<input
232-
aria-labelledby={`checkbox-${row.id}`}
233232
type="checkbox"
234233
className="cursor-pointer"
235234
onChange={(event) => handleSelectRow(event, row.id)}
@@ -238,7 +237,7 @@ function EventsTable() {
238237
</td>
239238
<td className="whitespace-wrap px-2 py-4">{row.eventName}</td>
240239
<td>{row.city}</td>
241-
<td className="hidden sm:table-cell">{row.date}</td>
240+
<td className="hidden sm:table-cell">{row.date}</td>
242241
<td className="hidden sm:table-cell">{row.from}</td>
243242
<td className="hidden sm:table-cell">{row.to}</td>
244243
<td className="hidden sm:table-cell">{row.chapter}</td>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* eslint-disable react/require-default-props */
2+
import PropTypes from "prop-types";
3+
4+
function InventoryCardComponent({
5+
title = "All Orders",
6+
number = 500,
7+
categories,
8+
}) {
9+
return (
10+
<div className="flex mt-5 ">
11+
<div className="flex w-full p-[12px] ">
12+
<div className="flex w-full border-r-[1px] border-[#CBCDCC] pr-[12px]">
13+
<div className="grid w-full justify-start font-[600]">
14+
<span className=" text-[16px] text-[#475467]">{title}</span>
15+
<span className="text-[36px] -mt-1 text-[#4C4D4D]">{number}</span>
16+
{categories && (
17+
<div className=" mt-5 pr-4 pl-4 pt-2 pb-2 bg-[#F2F4F7] rounded-full">
18+
<p className=" text-[#344054]">{categories} Categories</p>
19+
</div>
20+
)}
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
);
26+
}
27+
28+
export default InventoryCardComponent;
29+
30+
InventoryCardComponent.propTypes = {
31+
categories: PropTypes.number,
32+
number: PropTypes.number,
33+
title: PropTypes.string,
34+
};

0 commit comments

Comments
 (0)