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

Add page components for nation subpages #120

Open
Frewacom opened this issue Jun 23, 2021 · 0 comments
Open

Add page components for nation subpages #120

Frewacom opened this issue Jun 23, 2021 · 0 comments
Labels
component Adding or updating components feature improvement New feature or request styling Styling

Comments

@Frewacom
Copy link
Member

The subnavigation links on the nation page currently does not have any defined page components. This means that they all return 404's.

image

Solution

  • Create new nation directory in pages/admin/
  • Move the current pages/admin/nation.tsx to pages/admin/nation/index.tsx
  • Add new page components for each subpage (in pages/admin/nation/<subpage>.tsx
  • Create a new layout for the nation page (based on the code in the current nation.tsx page)
  • Reuse the newly created layout in all of the nation pages (you can see examples of this in components/layouts/admin/UserLayout.tsx and the users/[user_id]/*.tsx pages)
@Frewacom Frewacom added improvement New feature or request feature styling Styling component Adding or updating components labels Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component Adding or updating components feature improvement New feature or request styling Styling
Projects
None yet
Development

No branches or pull requests

1 participant