Feat: Designed and implemented a new standardized admin header component #164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
As requested in issue #148 , I have standardized the design for headers on all admin pages except for overview. Additionally, there are options beneath the header that may be passed in to the header component if appropriate for a specific page. Examples of these props are listed below.
Example 1
For the Music.tsx page, if the prop "music={true}" is passed into admin header component, two call-to-action (cta) buttons will be rendered: Track Queue and Search Tracks. Cta buttons have been nicely styled and takes inspiration from Github's header component.
Example 2
If a page requires a more generalized cta button, one can pass in an object to the prop cta. This object is structured as a label and a link. As shown below, the label represents the name for the button that will be displayed and the link refers to the path of the page the button redirects to.
Final result


Before:
After: