Skip to content

Commit

Permalink
Merge branch 'sean/public-event' of https://github.com/acmucsd/member…
Browse files Browse the repository at this point in the history
…ship-portal-ui-v2 into sean/public-event
  • Loading branch information
SheepTester committed Apr 23, 2024
2 parents 2b3683b + 0c3e072 commit 8853da4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/components/events/EventCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const EventCard = ({
<Link
href={`${config.eventsRoute}/${uuid}`}
data-community={community}
data-disabled={borderless}
className={`${styles.container} ${borderless ? '' : styles.bordered} ${className || ''}`}
onClick={e => {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion src/components/events/EventCard/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
border-radius: 10px;
}

&:not([disabled]):hover {
&:not([data-disabled]):hover {
outline-width: 4px;
transform: scale(0.975);

Expand Down
17 changes: 9 additions & 8 deletions src/pages/admin/store/pickup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ const AdminPickupPage = ({ futurePickupEvents, pastPickupEvents }: AdminPickupPa
<Typography variant="h1/bold" style={{ marginRight: 'auto' }}>
Manage Pickup Events
</Typography>

<button
type="button"
className={`${styles.displayButton} ${display === 'future' && styles.active}`}
onClick={() => router.push(`${config.admin.store.pickupCreate}`)}
>
<Typography variant="h5/bold">Create New Pickup Event</Typography>
</button>
<div className={styles.displayButtons}>
<button
type="button"
className={`${styles.displayButton} ${styles.active}`}
onClick={() => router.push(`${config.admin.store.pickupCreate}`)}
>
<Typography variant="h5/bold">Create New Pickup Event</Typography>
</button>
</div>

<div className={styles.displayButtons}>
<button
Expand Down
6 changes: 5 additions & 1 deletion src/pages/store/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ const getServerSidePropsFunc: GetServerSideProps = async ({ req, res }) => {

const savedCartPromise = CartService.getCart({ req, res });
const pickupEventsPromise = getFutureOrderPickupEvents(AUTH_TOKEN).then(events =>
events.filter(event => event.status !== 'CANCELLED')
events
.filter(event => event.status !== 'CANCELLED')
.filter(
event => !(event.orders && event.orderLimit && event.orders.length > event.orderLimit)
)
);
const userPromise = getCurrentUserAndRefreshCookie(AUTH_TOKEN, { req, res });

Expand Down

0 comments on commit 8853da4

Please sign in to comment.