Skip to content

Commit

Permalink
Merge branch 'main' into raymond/live-badge-tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
raymosun authored Apr 23, 2024
2 parents 89962c5 + 799ed07 commit 4bd7874
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/common/ThemeToggle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ThemeToggle = () => {
// This affects the color of the safe zone on iPhone 15.
const metaThemeColor = document.querySelector('meta[name="theme-color"]');
if (metaThemeColor && resolvedTheme === 'dark') {
metaThemeColor.setAttribute('content', '#37393e');
metaThemeColor.setAttribute('content', '#25262b');
} else if (metaThemeColor) {
metaThemeColor.setAttribute('content', '#fff');
}
Expand Down
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 @@ -25,14 +25,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 4bd7874

Please sign in to comment.