Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YassinEldeeb committed Aug 6, 2024
1 parent f96b0cf commit 3a86197
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/app/conf/2024/pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export function Pricing() {
</h3>

<SessionList
minimalVersion
year="2024"
filterCategories={filterCategories2024}
eventsColors={eventsColors}
Expand Down
8 changes: 5 additions & 3 deletions src/app/conf/_components/schedule/session-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ interface Props {
options: string[]
}[]
eventsColors: Record<string, string>
minimalVersion?: boolean
}

export function SessionList({
Expand All @@ -104,6 +105,7 @@ export function SessionList({
year,
filterCategories,
eventsColors,
minimalVersion
}: Props): ReactElement {
const [filtersState, setFiltersState] = useState<
Record<CategoryName, string[]>
Expand Down Expand Up @@ -166,15 +168,15 @@ export function SessionList({
key={session.id}
className={`${clsx(
"white shadow-2xl rounded-md overflow-hidden flex flex-col text-current hover:no-underline focus:no-underline",
)} ${year === "2024" ? "bg-[#251f30]" : ""}`}
)} ${minimalVersion ? "bg-[#251f30]" : ""}`}
href={
year === "2024"
minimalVersion
? `/conf/${year}/schedule/${session.id}`
: `/conf/${year}/sessions/${session.id}`
}
>
<div
className={`${year === "2024" ? "hidden" : ""} bg-[#251F30] text-white flex justify-between py-5 px-7 relative`}
className={`${minimalVersion ? "hidden" : ""} bg-[#251F30] text-white flex justify-between py-5 px-7 relative`}
>
<div className="text-sm flex flex-col gap-2 [*:hover>*>&]:opacity-0 transition-opacity duration-300 opacity-100">
{year !== "2024" && (
Expand Down

0 comments on commit 3a86197

Please sign in to comment.