SE310-1 / W.A.K

W.A.K is a movie tracker web-app developed to simplify and enhance the movie-rating experience while making this process more fun and customisable.
MIT License
2 stars 12 forks source link

Implement Basic Version of Favourites Page #57

Closed vdav02 closed 1 year ago

vdav02 commented 1 year ago

This PR adds

While this PR primarily serves to prevent #56 being blocked by not having a favourites page to work on, it still works towards closing #53

Further implementation of the favourites list functionality will come in later PR's

leas022 commented 1 year ago

@MRlolface249 here are screenshots like you requested. I'll try to get an automated GitHub action to run the project and take screenshots, but this will have to work for the meantime.

image image

vdav02 commented 1 year ago

Almost everything is looking good thanks guys. The button and new page will be enough for @MRlolface249 and I to get started on our issue/new feature implementation. The only issue I picked up on is a vite/react warning logged to the console:

11:41:40 pm [vite] warning: The character ">" is not valid inside a JSX element
26 |              <Route path="/signup" element={!user ? <Signup /> : <Navigate to="/" />} />
27 |              <Route path="/favourites" element={user ? <Favourites /> : <Navigate to="/signup" />} />
28 |              />
   |               ^
29 |            </Routes>
30 |          </div>

I think the issue is just the double /> in App.jsx on line 42 - hopefully removing the second closing tag will fix the issue. But apart from that I'm happy with the changes.

Thanks for catching that typo Luca, looks like in my rush to get this up I just checked to make sure it compiled and ran properly. Just made sure it ran and tested the button functionality to make sure it worked as expected. Thanks for catching that, I've made a commit now which should fix the typo.