Skip to content

Commit 7ec8846

Browse files
authored
Merge branch 'Dev' into inventory_admin
2 parents a5cfa39 + 14d1e45 commit 7ec8846

File tree

9 files changed

+925
-811
lines changed

9 files changed

+925
-811
lines changed

pnpm-lock.yaml

Lines changed: 906 additions & 785 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,11 @@ function EventsTable() {
227227
<td
228228
aria-label="events"
229229
className="hidden sm:table-cell py-4 "
230+
className="hidden sm:table-cell py-4"
231+
id={`checkbox-${row.id}`}
230232
>
231233
<input
234+
aria-labelledby={`checkbox-${row.id}`}
232235
type="checkbox"
233236
className="cursor-pointer"
234237
onChange={(event) => handleSelectRow(event, row.id)}
@@ -237,7 +240,7 @@ function EventsTable() {
237240
</td>
238241
<td className="whitespace-wrap px-2 py-4">{row.eventName}</td>
239242
<td>{row.city}</td>
240-
<td className="hidden sm:table-cell">{row.date}</td>
243+
<td className="hidden sm:table-cell">{row.date}</td>
241244
<td className="hidden sm:table-cell">{row.from}</td>
242245
<td className="hidden sm:table-cell">{row.to}</td>
243246
<td className="hidden sm:table-cell">{row.chapter}</td>

src/pages/admin/shop/dashboard/AdminMain.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
import React from "react";
21
import AdminReportCard, {
3-
HighDemandCard,
4-
TotalVisitsCustomCard,
5-
ChartComponent,
62
BigChartComponent,
3+
ChartComponent,
4+
HighDemandCard,
75
InvenOrderCard,
86
InvenOrderCardTwo,
9-
totalSalesData,
107
totalOrdersData,
11-
totalVisitsData,
8+
totalSalesData,
129
totalVisitInnerCardData,
1310
totalVisitInnerCardDataTwo,
11+
TotalVisitsCustomCard,
12+
totalVisitsData,
1413
} from "../../../../components/admin/AdminReportCard";
1514

1615
function AdminMain() {

src/pages/blog/sections/ShareBlog.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable react/prop-types */
22

33
import React from "react";
4-
4+
import PropTypes from "prop-types";
55
import {
66
FacebookIcon,
77
FacebookShareButton,
@@ -56,3 +56,8 @@ function ShareBlog({ url, title }) {
5656
}
5757

5858
export default ShareBlog;
59+
60+
ShareBlog.propTypes = {
61+
url: PropTypes.string.isRequired,
62+
title: PropTypes.string.isRequired,
63+
};

src/pages/errorPages/Error403.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
31
import { LazyLoadImage } from "react-lazy-load-image-component";
42
import { error403 } from "../../assets/images/errorPages";
53

src/pages/events/sections/eventsSection/Events.jsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,11 @@ import { EventCard } from "../../../community/sections/eventsPreview/SingleEvent
1414
// calendar,
1515
// globe,
1616
// } from "../../../../../assets/images/icons";
17+
import { EventCard } from "../../../community/sections/eventsPreview/SingleEvents/sections";
1718

1819
function Events({ events }) {
19-
// const formattedDate = format(parseISO(start_date), "do, MMMM");
20-
// import formatEventDates from "../../../../../utilities/formatEventDate";
21-
// import { LazyLoadImage } from "react-lazy-load-image-component";
22-
2320
return (
24-
<div
25-
// className="my-4 md:my-8 grid grid-cols-1 gap-8 sm:grid-cols-2 md:grid-cols-3 max-w-1216 mx-auto md:pb-10"
26-
className="mx-auto my-6 max-w-1216 w-full grid grid-cols-1 sm:grid-cols-2 place-content-center lg:grid-cols-3 gap-8 justify-between px-4 xl:px-0"
27-
// style={{
28-
// gridAutoColumns: "max-content",
29-
// gridTemplateRows: "minmax(550px, 400px)",
30-
// }}
31-
>
21+
<div className="mx-auto my-6 max-w-1216 w-full grid grid-cols-1 sm:grid-cols-2 place-content-center lg:grid-cols-3 gap-8 justify-between px-4 xl:px-0">
3222
{events &&
3323
Array.isArray(events) &&
3424
events.map((event) => (
@@ -133,6 +123,7 @@ function Events({ events }) {
133123
// </div>
134124
// </Link>
135125
))}
126+
events.map((event) => <EventCard key={event.id} event={event} />)}
136127
</div>
137128
);
138129
}

src/pages/landingPage/sections/CTASection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from "react";
2+
import { useState } from "react";
23
import { bannerImg } from "../../../assets/images/hero-section";
34
import JoinSYTModal from "../../community/sections/JoinSYTModal";
4-
// import { bannerImg } from "../assets/images/hero-section";
55

66
function CTASection() {
77
const [isOpen, setIsOpen] = useState(false);

src/pages/landingPage/sections/WhatWeDo.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable react/prop-types */
2-
import React from "react";
32
import { LazyLoadImage } from "react-lazy-load-image-component";
43
import { Button } from "../../../components";
54
import { whatWeDoData } from "../data";

src/pages/products/sections/Teams.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { Tab } from "@headlessui/react";
2-
import React from "react";
32
import { LazyLoadImage } from "react-lazy-load-image-component";
43
import { Link, useNavigate } from "react-router-dom";
5-
64
import { upleftGreen } from "../../../assets/images/icons";
75
import { Loader } from "../../../components";
86
import useStackData from "../../../hooks/Queries/stack/useStackData";

0 commit comments

Comments
 (0)