Rename ViewSwitcher
This commit is contained in:
parent
3aa92b2e03
commit
29914b5346
@ -16,7 +16,7 @@ import { useState } from 'react';
|
||||
|
||||
export type SwitcherSelection = 'feed' | 'grid' | 'admin';
|
||||
|
||||
export default function ViewSwitcher({
|
||||
export default function AppViewSwitcher({
|
||||
currentSelection,
|
||||
className,
|
||||
}: {
|
||||
@ -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,
|
||||
)}>
|
||||
<ViewSwitcher
|
||||
<AppViewSwitcher
|
||||
currentSelection={switcherSelectionForPath()}
|
||||
/>
|
||||
<div className={clsx(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user