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

Antti/json server #4

Merged
merged 49 commits into from
Jan 23, 2024
Merged

Antti/json server #4

merged 49 commits into from
Jan 23, 2024

Conversation

anttiasmala
Copy link
Collaborator

Ensimmäinen versio json-server:stä.

Antti Asmala and others added 21 commits September 29, 2023 10:01
…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
…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
Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lahjalista ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2024 10:20am

…ted json-server folder due to no usage for now. Changed the db.json file location in package.json
@samuliasmala samuliasmala changed the base branch from main to dev December 22, 2023 17:35
@samuliasmala samuliasmala changed the base branch from dev to main December 22, 2023 17:35
Copy link
Owner

@samuliasmala samuliasmala left a 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! 💪

Copy link
Owner

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?

Copy link
Owner

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.

…ateGift function which was not working. Removed return statement from functions that do not need it
Copy link
Owner

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.

Copy link
Owner

@samuliasmala samuliasmala left a 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.

@anttiasmala anttiasmala merged commit fcf52d9 into main Jan 23, 2024
5 checks passed
@anttiasmala anttiasmala deleted the antti/json-server branch January 23, 2024 10:41
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.

2 participants