From 29914b53467a0e8191c9dcaee363799b46431a16 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Thu, 24 Apr 2025 09:22:03 -0500 Subject: [PATCH] Rename ViewSwitcher --- src/app/{ViewSwitcher.tsx => AppViewSwitcher.tsx} | 2 +- src/app/Nav.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/app/{ViewSwitcher.tsx => AppViewSwitcher.tsx} (98%) diff --git a/src/app/ViewSwitcher.tsx b/src/app/AppViewSwitcher.tsx similarity index 98% rename from src/app/ViewSwitcher.tsx rename to src/app/AppViewSwitcher.tsx index 7b0f6700..84833d99 100644 --- a/src/app/ViewSwitcher.tsx +++ b/src/app/AppViewSwitcher.tsx @@ -16,7 +16,7 @@ import { useState } from 'react'; export type SwitcherSelection = 'feed' | 'grid' | 'admin'; -export default function ViewSwitcher({ +export default function AppViewSwitcher({ currentSelection, className, }: { diff --git a/src/app/Nav.tsx b/src/app/Nav.tsx index 060fd2ed..56853ee0 100644 --- a/src/app/Nav.tsx +++ b/src/app/Nav.tsx @@ -4,7 +4,7 @@ import { clsx } from 'clsx/lite'; import { usePathname } from 'next/navigation'; import Link from 'next/link'; import AppGrid from '../components/AppGrid'; -import ViewSwitcher, { SwitcherSelection } from '@/app/ViewSwitcher'; +import AppViewSwitcher, { SwitcherSelection } from '@/app/AppViewSwitcher'; import { PATH_ROOT, isPathAdmin, @@ -80,7 +80,7 @@ export default function Nav({ 'md:w-[calc(100%+8px)] md:translate-x-[-4px] md:px-[4px]', classNameStickyNav, )}> -