mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-21 18:55:36 +02:00
feat: reorder nav tabs to archive, tags, collections, runs, admin, settings
This commit is contained in:
parent
98238cd1f3
commit
f71be25a8e
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ import { displayPath } from './utils'
|
||||||
|
|
||||||
export const AuthContext = createContext(null);
|
export const AuthContext = createContext(null);
|
||||||
|
|
||||||
const VIEWS = ['archive','runs','admin','tags','collections','settings']
|
const VIEWS = ['archive','tags','collections','runs','admin','settings']
|
||||||
const SETTINGS_TABS = ['profile','tokens','instance']
|
const SETTINGS_TABS = ['profile','tokens','instance']
|
||||||
|
|
||||||
function parseLocation() {
|
function parseLocation() {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ export default function Topbar({ archives, archiveId, onArchiveChange, view, onV
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<nav className="nav" aria-label="Primary">
|
<nav className="nav" aria-label="Primary">
|
||||||
{['archive', 'runs', 'admin', 'tags', 'collections', 'settings'].map(name => (
|
{['archive', 'tags', 'collections', 'runs', 'admin', 'settings'].map(name => (
|
||||||
<button key={name} className={`nav-link${view === name ? ' is-active' : ''}`}
|
<button key={name} className={`nav-link${view === name ? ' is-active' : ''}`}
|
||||||
onClick={() => onViewChange(name)}>
|
onClick={() => onViewChange(name)}>
|
||||||
{name.charAt(0).toUpperCase() + name.slice(1)}
|
{name.charAt(0).toUpperCase() + name.slice(1)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue