File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- export default async ( req , res ) => {
1
+ const steveApiHandler = async ( req , res ) => {
2
2
const calendarId =
3
3
'c_e7c63a427761b0f300ede97f432ba4af24033daad26be86da0551b40b7968f00@group.calendar.google.com'
4
4
const apiKey = 'AIzaSyD_8dEnTDle3WmaoOTvEW6L1GW540FU_wg' // Replace with your API Key
@@ -64,3 +64,5 @@ export default async (req, res) => {
64
64
return res . status ( 500 ) . json ( { error : 'Failed to fetch busy times.' } )
65
65
}
66
66
}
67
+
68
+ export default steveApiHandler
Original file line number Diff line number Diff line change @@ -327,11 +327,11 @@ const StevePage = () => {
327
327
key = { idx }
328
328
alt = ""
329
329
style = { {
330
- display : idx == selectedImage ? 'flex' : 'flex' ,
330
+ display : idx === selectedImage ? 'flex' : 'flex' ,
331
331
cursor : 'pointer' ,
332
332
aspectRatio : '1' ,
333
333
objectFit : 'cover' ,
334
- opacity : idx != selectedImage ? 0.5 : 1
334
+ opacity : idx !== selectedImage ? 0.5 : 1
335
335
} }
336
336
onClick = { ( ) => setSelectedImages ( idx ) }
337
337
width = { '96px' }
You can’t perform that action at this time.
0 commit comments