File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ export function Pricing() {
154154 </ h3 >
155155
156156 < SessionList
157+ minimalVersion
157158 year = "2024"
158159 filterCategories = { filterCategories2024 }
159160 eventsColors = { eventsColors }
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ interface Props {
9595 options : string [ ]
9696 } [ ]
9797 eventsColors : Record < string , string >
98+ minimalVersion ?: boolean
9899}
99100
100101export function SessionList ( {
@@ -104,6 +105,7 @@ export function SessionList({
104105 year,
105106 filterCategories,
106107 eventsColors,
108+ minimalVersion
107109} : Props ) : ReactElement {
108110 const [ filtersState , setFiltersState ] = useState <
109111 Record < CategoryName , string [ ] >
@@ -166,15 +168,15 @@ export function SessionList({
166168 key = { session . id }
167169 className = { `${ clsx (
168170 "white shadow-2xl rounded-md overflow-hidden flex flex-col text-current hover:no-underline focus:no-underline" ,
169- ) } ${ year === "2024" ? "bg-[#251f30]" : "" } `}
171+ ) } ${ minimalVersion ? "bg-[#251f30]" : "" } `}
170172 href = {
171- year === "2024"
173+ minimalVersion
172174 ? `/conf/${ year } /schedule/${ session . id } `
173175 : `/conf/${ year } /sessions/${ session . id } `
174176 }
175177 >
176178 < div
177- className = { `${ year === "2024" ? "hidden" : "" } bg-[#251F30] text-white flex justify-between py-5 px-7 relative` }
179+ className = { `${ minimalVersion ? "hidden" : "" } bg-[#251F30] text-white flex justify-between py-5 px-7 relative` }
178180 >
179181 < div className = "text-sm flex flex-col gap-2 [*:hover>*>&]:opacity-0 transition-opacity duration-300 opacity-100" >
180182 { year !== "2024" && (
@@ -276,4 +278,4 @@ function ClockIcon(props: ComponentProps<"svg">) {
276278 />
277279 </ svg >
278280 )
279- }
281+ }
You can’t perform that action at this time.
0 commit comments