Skip to content

Commit ac33f6a

Browse files
committed
Fix lint errs
1 parent c98082d commit ac33f6a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pages/api/steve.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default async (req, res) => {
1+
const steveApiHandler = async (req, res) => {
22
const calendarId =
33
'c_e7c63a427761b0f300ede97f432ba4af24033daad26be86da0551b40b7968f00@group.calendar.google.com'
44
const apiKey = 'AIzaSyD_8dEnTDle3WmaoOTvEW6L1GW540FU_wg' // Replace with your API Key
@@ -64,3 +64,5 @@ export default async (req, res) => {
6464
return res.status(500).json({ error: 'Failed to fetch busy times.' })
6565
}
6666
}
67+
68+
export default steveApiHandler

pages/steve.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ const StevePage = () => {
327327
key={idx}
328328
alt=""
329329
style={{
330-
display: idx == selectedImage ? 'flex' : 'flex',
330+
display: idx === selectedImage ? 'flex' : 'flex',
331331
cursor: 'pointer',
332332
aspectRatio: '1',
333333
objectFit: 'cover',
334-
opacity: idx != selectedImage ? 0.5 : 1
334+
opacity: idx !== selectedImage ? 0.5 : 1
335335
}}
336336
onClick={() => setSelectedImages(idx)}
337337
width={'96px'}

0 commit comments

Comments
 (0)