Skip to content

Commit

Permalink
fixed past event img
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelgeek committed Nov 5, 2024
1 parent 49bbc5f commit bd44647
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/layouts/components/NotificationsPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@ export const NotificationsPrompt = () => {
<div className="flex flex-wrap w-full justify-between items-center mt-6">
<button
type="button"
className="btn-secondary px-6"
className="btn-accent px-6"
onClick={() => promptNotifications()}
>
Allow
</button>
<button
type="button"
className="btn-accent px-6"
className="btn-secondary px-6"
onClick={() => rejectPrompt()}
>
Block
Expand Down
13 changes: 11 additions & 2 deletions components/sessions/SessionGridCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ export const SessionGridCard = ({
schedules,
activeTab,
from,
year = 24,
}: {
schedules: Schedule[]
activeTab: number
// eslint-disable-next-line react/require-default-props
from?: string
// eslint-disable-next-line react/require-default-props
year?: number
}) => {
return (
<>
Expand All @@ -37,7 +40,10 @@ export const SessionGridCard = ({
<img
className="object-cover md:object-cover"
src={
schedule.session_image ?? '/images/all-new.png'
schedule.session_image ??
(year === 24
? '/images/all-new.png'
: '/images/all.png')
}
alt={schedule.title}
/>
Expand All @@ -51,7 +57,10 @@ export const SessionGridCard = ({
<img
className="object-cover md:object-cover"
src={
schedule.session_image ?? 'images/all-new.png'
schedule.session_image ??
(year === 24
? '/images/all-new.png'
: '/images/all.png')
}
alt={schedule.title}
/>
Expand Down
1 change: 1 addition & 0 deletions pages/past-events/2022.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const Home2022: NextPage<SessionProps> = ({
schedules={schedules}
activeTab={activeTab}
from="/past-events/2022"
year={22}
/>
) : (
<SessionListCard
Expand Down
1 change: 1 addition & 0 deletions pages/past-events/2023.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const Home2023: NextPage<SessionProps> = ({
schedules={schedules}
activeTab={activeTab}
from="/past-events/2023"
year={23}
/>
) : (
<SessionListCard
Expand Down

0 comments on commit bd44647

Please sign in to comment.