Skip to content

Commit

Permalink
Left-Right Alignment of Events
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashManna2003 committed Nov 5, 2024
1 parent d901560 commit 3689980
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
19 changes: 16 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/pages/Events/Events.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function Events() {
<h2 className={Styles.categoryHeading2}>Events</h2>
<div className={Styles.cardsWrapper}>
{events &&
events.map((event) => {
events.map((event, index) => {
// Earlier code had a problem with the URL so we hard coded it in line number 157
// let imgSrc = null;
// if (event.image) {
Expand All @@ -163,7 +163,7 @@ export default function Events() {
description={event.description}
resultExists={event.resultExists}
imgSrc={imgSrc}
index={event.id}
index={index}
displayTrue={() => {
setShow(true);
setContent(event);
Expand Down
13 changes: 9 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12348,16 +12348,21 @@ type-detect@4.0.8:
resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz"
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==

type-fest@^0.13.1, type-fest@^0.21.3:
version "0.21.3"
resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz"
integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==
type-fest@^0.13.1:
version "0.13.1"
resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz"
integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==

type-fest@^0.20.2:
version "0.20.2"
resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz"
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==

type-fest@^0.21.3:
version "0.21.3"
resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz"
integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==

type-fest@^0.3.1:
version "0.3.1"
resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz"
Expand Down

0 comments on commit 3689980

Please sign in to comment.