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

[Task] use fetch and avatar #41

Merged
merged 3 commits into from
Aug 4, 2022
Merged

Conversation

ranjabi
Copy link
Contributor

@ranjabi ranjabi commented Aug 4, 2022

Story/Task

Fix use fetch for wrong post address and use transparent avatar

Summary

  • Add oskm-logo.svg, rename previous oskm logo to oskm-logo-text.
  • Add config in tailwind
  • Add base layout to wrong post address

I tried to rethrow the promise from ghostApi.tsx but it leads to uncaught promise from ghost api which is unclear because the try catch block already declared in useFetch. I think the try catch block in useFetch.tsx is not needed because the returned value from url promise is whether fulfilled/rejected.

Test Plan

  • Visit wrong post address
  • Visit wrong page ex: ../abou

Screenshot

image
image
image

@ranjabi ranjabi requested a review from IloveNooodles August 4, 2022 11:07
src/service/ghostAPI.ts Show resolved Hide resolved
src/pages/ErrorPage.tsx Outdated Show resolved Hide resolved
src/hooks/useFetch.tsx Show resolved Hide resolved
Copy link
Contributor

@IloveNooodles IloveNooodles left a comment

Choose a reason for hiding this comment

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

approve with some comments

@IloveNooodles IloveNooodles merged commit 4043fe2 into master Aug 4, 2022
@IloveNooodles IloveNooodles deleted the fix/use-fetch-and-avatar branch August 4, 2022 15:15
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