-
Notifications
You must be signed in to change notification settings - Fork 0
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
Antti/json server #4
Conversation
…lders. Created a fetchFunctions file for all the functions needed for json-server.
…ons.tsx. Changed import fetchFunctions to jsonServerFunctions. Moved the jsonServerFunctions.tsx to utils folder and deleted json-server folder inside the utils folder
…function that fetches all the gifts from json-server 'backend'
…backend instead of localStorage. Made the gift prop to be mandatory instead of optional
…on works. Added JSDoc information
… be any instead of void
…ready. Created an useEffect to have a timer for hiding modal. Added an ability to change classNames of containers in Modal.tsx. Created InfoModal.tsx
…rver. Bypasses the error Axios gives to the console if the gift was deleted already
…stant variable names
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…ted json-server folder due to no usage for now. Changed the db.json file location in package.json
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.
Hienosti toimi json-serveri! 💪
icons/accept_button_icon.tsx
Outdated
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.
Muutitko tiedostoa tarkoituksella vai ajoitko svgr
skriptin vahingossa?
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.
Tämä joko jäi korjaamatta tai jos muutit tiedostoa tarkoituksella niin sen voisi kommentoida tähän.
…ror the error. Changed JSON_OBJECT variable to newGift to be more clarifying
…ateGift function which was not working. Removed return statement from functions that do not need it
icons/accept_button_icon.tsx
Outdated
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.
Tämä joko jäi korjaamatta tai jos muutit tiedostoa tarkoituksella niin sen voisi kommentoida tähän.
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.
Muutama muutoskommentti vielä, ja sitten merge conflikti pitää myös ratkaista. Se kannattaa ratkaista mergeämällä main-branch tähän branchiin ja ratkaisemalla mergen yhteydessä tulevat konfliktit.
… returns as Gift type in jsonServerFunctions.ts
… SVG-icons get imported
Ensimmäinen versio json-server:stä.