-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/searchbar #49
Conversation
requirments.txt
Outdated
@@ -0,0 +1,2 @@ | |||
#install the Font Awesome package | |||
npm install @fortawesome/react-fontawesome @fortawesome/free-solid-svg-icons |
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.
I think we don't need this file. Since you listed these packages as dependencies in package.json, they should be installed with running just npm install
as it's instructed in the readme file. Or am I missing something?
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 are right, but I added this file to mention about the package that installed, incase someone missed to run npm install.
should i delete it ?
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.
They would not need it, as a simple npm install
would install this since the package got added to the package.json file
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.
ok i will remove it :)
const [checkOut, setCheckOut] = useState(""); | ||
const [guests, setGuests] = useState(""); | ||
|
||
const handleSearch = () => { |
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.
Imagine we would want to reuse this component for different purposes. Let's say searching for home and the second use case would be searching for events. In such case we wouldn't want to implement the behavior what happens here in the component but in the place where we are calling this component. The good news is that we can pass this function via a prop. You can read about props in React here https://react.dev/learn/passing-props-to-a-component
Feel free to ask questions either here or in our slack channel.
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.
Thank you for the nice advise.
i updated the component to make it more reusable (maybe :) ). hope i got it and implemented well
Happy to see another amazing Pull Request! 🥳 Please check my comments and also it would be amazing if you could post a screenshot here in the PR whenever you're working on something visual. |
I can see some minor issues:
|
thank you Micha for the comment i think now the ticket also ready to merge into the main branch |
The code looks good to me but there is a meging conflict. Otherwise everything looks fine to me. |
Hey Micha, you should first run "npm install" to intsall the packages on your local repo also. and then run the app. |
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.
All good, no hover effect on the search bar but I dont see it mentioned in the ACs so I assume it is completed as it is now.
1- Implemented searchbar
2- solve the issues
3- fix the confilcts
4- Closes #38
here it is: