-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/HNG-33-cookie-consent-settings #246
base: dev
Are you sure you want to change the base?
Conversation
Resolve conflicts and attach screenshots of desktop and mobile view |
I have removed the CoookieConsent.tsx component from app/routes/_index.tsx i believe this will resolve the conflict. |
|
||
} | ||
|
||
*{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already in global css
@@ -0,0 +1,69 @@ | |||
import React, {useState} from "react"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to import react, just useState is fine
onKeyDown={(e) => { | ||
if (e.key === 'Enter' || e.key === ' ') { | ||
toggleExpand(); | ||
e.preventDefault() | ||
} | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract this into a function, then call it here
@@ -0,0 +1,118 @@ | |||
import React, { useState } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't import the entire React, just import what you need, e.g FC
if (e.key === 'Enter' || e.key === ' ') { | ||
onToggle(); | ||
e.preventDefault() | ||
} | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract into a function
Also @Kwasako you have conflicts |
Description
Implemented Cookie Consent Modal
Closes #33
Changes proposed
What were you told to do?
Implement all sections of the cookie consent settings
What did you do?
Implemented all sections of the cookies consent settings designs.
Check List (Check all the applicable boxes)
🚨Please review the contribution guideline for this repository.
Screenshots/Videos