Fermain / -mollify

9 stars 9 forks source link

188 add navigation query string flag options #198

Closed StianSto closed 9 months ago

StianSto commented 9 months ago

heres hoping i understood the assignment correctly. I assumed this issue's purpose was to add a functionality to share a link to students, teachers etc, but limit what they can see and navigate through.

I added a functionality to the nav that renders the nav differently depending on the nav query. example: ?nav=programme will render the closest parent with a type of programme, and its children. if no nav param is present it defaults to only show the current page and its children.

StianSto commented 9 months ago

update: added a context that can be used in the tree. some funny monkeybusiness happened when i tried to use props bubbling down. +layout now takes care of setting the "render by type"