Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Jam3/nextjs-boilerplate into main
Browse files Browse the repository at this point in the history
  • Loading branch information
DonghyukJacobJang committed Jun 29, 2022
2 parents 8240018 + 27f891c commit 5e7961d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/CookieBanner/CookieBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ function CookieBanner({

<ul>
<li>
<input type="checkbox" id="cookie-necessary" checked={cookieSettings.necessary} readOnly />
<input type="checkbox" id="cookie-necessary" checked={cookieSettings?.necessary} readOnly />
<label htmlFor="cookie-necessary">{copy.purpose.necessary}</label>
</li>
<li>
<input
type="checkbox"
id="cookie-preference"
checked={cookieSettings.preference}
checked={cookieSettings?.preference}
onChange={(e) => handleCookieUpdate('preference', e.target.checked)}
/>
<label htmlFor="cookie-preference">{copy.purpose.preference}</label>
Expand All @@ -120,7 +120,7 @@ function CookieBanner({
<input
type="checkbox"
id="cookie-statistics"
checked={cookieSettings.statistics}
checked={cookieSettings?.statistics}
onChange={(e) => handleCookieUpdate('statistics', e.target.checked)}
/>
<label htmlFor="cookie-statistics">{copy.purpose.statistics}</label>
Expand All @@ -129,7 +129,7 @@ function CookieBanner({
<input
type="checkbox"
id="cookie-marketing"
checked={cookieSettings.marketing}
checked={cookieSettings?.marketing}
onChange={(e) => handleCookieUpdate('marketing', e.target.checked)}
/>
<label htmlFor="cookie-marketing">{copy.purpose.marketing}</label>
Expand Down

0 comments on commit 5e7961d

Please sign in to comment.