From e903af196d7c31109379ea847f67675d9384051f Mon Sep 17 00:00:00 2001 From: Kavan Gondalia Date: Fri, 14 Jun 2024 22:11:21 +0530 Subject: [PATCH 1/2] fix: existing lint issues --- components/Agenda/agenda.js | 5 +++-- components/Footer/footer.js | 9 +++------ components/Form/Cfp/stepThree.js | 2 +- components/Form/select.js | 2 +- components/Navbar/navbar.js | 19 ++++++++++--------- components/Select/select.js | 2 +- components/Speaker/speaker.js | 7 ++----- components/Venue/venue.js | 3 ++- 8 files changed, 23 insertions(+), 26 deletions(-) diff --git a/components/Agenda/agenda.js b/components/Agenda/agenda.js index 6ee864f9..e6829c61 100644 --- a/components/Agenda/agenda.js +++ b/components/Agenda/agenda.js @@ -1,6 +1,7 @@ import React from 'react' import Heading from '../Typography/heading' import Paragraph from '../Typography/paragraph' +import Image from 'next/image' function Agenda({ city }) { return ( @@ -39,7 +40,7 @@ function Agenda({ city }) { {talk.speaker && typeof talk.speaker === 'number' ?
- {city.speakers[talk.speaker + {city.speakers[talk.speaker
@@ -54,7 +55,7 @@ function Agenda({ city }) { {talk.speaker.map((speak, i) =>
- {city.speakers[speak + {city.speakers[speak
diff --git a/components/Footer/footer.js b/components/Footer/footer.js index 96bc009f..929c2160 100644 --- a/components/Footer/footer.js +++ b/components/Footer/footer.js @@ -1,4 +1,5 @@ import React from "react"; +import Image from 'next/image'; function Footer() { const socials = [ @@ -21,7 +22,7 @@ function Footer() { return (
- company logo + company logo
{/* This div helps keep the text centered */}
@@ -49,11 +50,7 @@ function Footer() { rel="noreferrer" className="w-12 h-12 rounded-lg border-[1.5px] border-[#556061] flex items-center justify-center hover:border-[#AD20E2] duration-150 ease-in-out" > - {social.name} + {social.name} ); })} diff --git a/components/Form/Cfp/stepThree.js b/components/Form/Cfp/stepThree.js index fa68ef2a..69d78fb9 100644 --- a/components/Form/Cfp/stepThree.js +++ b/components/Form/Cfp/stepThree.js @@ -37,7 +37,7 @@ function StepThree({ setStep, setForm, data }) { const [value, setValue] = useState({}); useEffect(() => { setForm({ ...data, ...value}); - }, [value]); + }, [data, setForm, value]); return (
setStep(e, 4)}>

diff --git a/components/Form/select.js b/components/Form/select.js index d5e5a772..b390e7ba 100644 --- a/components/Form/select.js +++ b/components/Form/select.js @@ -45,7 +45,7 @@ function Dropdown({ options, title, setValue, multi }) { } else { setValue(selectedOption.value); } - }, [selectedOption]); + }, [multi, selectedOption, setValue]); return (
- {details.name} + {details.name}

{details.name}

diff --git a/components/Venue/venue.js b/components/Venue/venue.js index 5640cbb0..a2b050b3 100644 --- a/components/Venue/venue.js +++ b/components/Venue/venue.js @@ -1,6 +1,7 @@ /* eslint-disable react/no-unescaped-entities */ import React from 'react'; import Link from 'next/link'; +import Image from 'next/image'; function Venue({ className, city }) { return ( @@ -14,7 +15,7 @@ function Venue({ className, city }) { e.preventDefault() window.open(city.map, '_blank', 'noopener') }} className='w-8 h-8 bg-white rounded-xl flex items-center justify-center ml-auto'> - + Map Icon
From 1b25e00f79525f24a9d4697e58c0afb0516fd816 Mon Sep 17 00:00:00 2001 From: Kavan Gondalia Date: Fri, 14 Jun 2024 23:51:58 +0530 Subject: [PATCH 2/2] fix: speaker profile image size --- components/Speaker/speaker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Speaker/speaker.js b/components/Speaker/speaker.js index 24104d6b..780a6749 100644 --- a/components/Speaker/speaker.js +++ b/components/Speaker/speaker.js @@ -7,7 +7,7 @@ function Speaker({details, location, className}) { className={`w-auto text-center flex flex-col items-center card h-auto rounded-md p-[27px] ${className}`} >
- {details.name} + {details.name}

{details.name}