File tree 2 files changed +7
-4
lines changed 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ export function Pricing() {
154
154
</ h3 >
155
155
156
156
< SessionList
157
+ minimalVersion
157
158
year = "2024"
158
159
filterCategories = { filterCategories2024 }
159
160
eventsColors = { eventsColors }
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ interface Props {
95
95
options : string [ ]
96
96
} [ ]
97
97
eventsColors : Record < string , string >
98
+ minimalVersion ?: boolean
98
99
}
99
100
100
101
export function SessionList ( {
@@ -104,6 +105,7 @@ export function SessionList({
104
105
year,
105
106
filterCategories,
106
107
eventsColors,
108
+ minimalVersion
107
109
} : Props ) : ReactElement {
108
110
const [ filtersState , setFiltersState ] = useState <
109
111
Record < CategoryName , string [ ] >
@@ -166,15 +168,15 @@ export function SessionList({
166
168
key = { session . id }
167
169
className = { `${ clsx (
168
170
"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]" : "" } `}
170
172
href = {
171
- year === "2024"
173
+ minimalVersion
172
174
? `/conf/${ year } /schedule/${ session . id } `
173
175
: `/conf/${ year } /sessions/${ session . id } `
174
176
}
175
177
>
176
178
< 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` }
178
180
>
179
181
< div className = "text-sm flex flex-col gap-2 [*:hover>*>&]:opacity-0 transition-opacity duration-300 opacity-100" >
180
182
{ year !== "2024" && (
@@ -276,4 +278,4 @@ function ClockIcon(props: ComponentProps<"svg">) {
276
278
/>
277
279
</ svg >
278
280
)
279
- }
281
+ }
You can’t perform that action at this time.
0 commit comments