JawHawk/Anichinu

Reload Button for refetching

JawHawk opened this issue · 5 comments

If due to network or server problem, Latest Anime API or background image API failed, a reload option should be displayed instead to refetch. This would solve the problem that user has to refresh the page to update.

Hey @JawHawk can you put this issue up for hacktoberfest?

Sure @mukeshmx, I have added the hacktoberfest label
Refresh Button should be for both background and latest anime drawer
Here is the respective file for that: https://github.com/JawHawk/Anichinu/blob/main/src/pages/Newtab/Newtab.tsx

Below is Code for Reload Button

<Tooltip label={'Reload'}>
      <ActionIcon variant="subtle" size={'lg'} onClick={() => {...refetch code}}>
            <Reload size={25} />
       </ActionIcon>
 </Tooltip>

It should look like this
image

Also do fork the repo and make a new branch having name similar to issue to create a PR

Thank you @JawHawk I'm working on this one

Any progress on this one @mukeshmx ??

I tried, I'm not getting the results :(