AlexsLemonade / refinebio-web

Refinebio Web
https://staging.web.refine.bio
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Add global shared UI Band component to the root layout file #351

Open nozomione opened 4 months ago

nozomione commented 4 months ago

Context

Resource: Next.js: Migrate routing hooks, Vercel: Context API with Next.js Currently, the following UI components are shared globally and rendered in the Layout component for the page router:

In this issue, we want to render Band in the root layout of the app router.

We'll also need to migrate the routing hook useRouter and adjust the BandContext provider which is used to render the correct band for each route.

Problem or idea

As stated above, refactor the Band component and render it in the root layout of the app router.

Solution or next step