From 48460666f3e9738041139a42d9c8e14d12a57da1 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 6 Jan 2024 23:06:58 -0600 Subject: [PATCH] Use admin path variable --- src/site/ViewSwitcher.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/ViewSwitcher.tsx b/src/site/ViewSwitcher.tsx index 875dad9c..7f7fa149 100644 --- a/src/site/ViewSwitcher.tsx +++ b/src/site/ViewSwitcher.tsx @@ -2,7 +2,7 @@ import Switcher from '@/components/Switcher'; import SwitcherItem from '@/components/SwitcherItem'; import IconFullFrame from '@/site/IconFullFrame'; import IconGrid from '@/site/IconGrid'; -import { PATH_GRID, PATH_SETS } from '@/site/paths'; +import { PATH_ADMIN_PHOTOS, PATH_GRID, PATH_SETS } from '@/site/paths'; import { BiLockAlt } from 'react-icons/bi'; import IconSets from './IconSets'; @@ -39,7 +39,7 @@ export default function ViewSwitcher({ {showAdmin && } - href="/admin/photos" + href={PATH_ADMIN_PHOTOS} active={currentSelection === 'admin'} />}