Skip to content
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

Created search bar #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Created search bar #20

wants to merge 1 commit into from

Conversation

jobanraiwal
Copy link
Contributor

No description provided.


const [search, setSearch] = useState("");

const handleChange = (e: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have an event type instead of any

}

return (
<div className="topnav">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

topnav is not a class


return (
<div className="topnav">
<input type="text" placeholder="Search.." value={search} onChange={handleChange}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this into a horizontal/grid instead of vertical

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also should be centered on the screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants