fix: titles
This commit is contained in:
1 parent
c7dd7eff19
commit
3615d5538d
6 files changed
+12
-11
No files matched your search
@@ -34,7 +34,7 @@ const UsersList: FC<Props> = ({ list, label, session }) => {
|
||||
<TabsContent key={key} value={key} className='w-full'>
|
||||
{query.isFetched && !query.shows.length ? (
|
||||
<div className='flex h-40 w-full items-center justify-center text-center text-xl text-muted-foreground'>
|
||||
There are no {title.toLowerCase()} in your {label} list
|
||||
There are no {title.toLowerCase()} in your {label}
|
||||
</div>
|
||||
) : (
|
||||
<List shows={query.shows} fetchNextPage={query.fetchNextPage} />
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ const WatchList = async () => {
|
||||
|
||||
return (
|
||||
<HydrationBoundary state={dehydrate(queryClient)}>
|
||||
<UsersList session={session} list={list} label='watch' />
|
||||
<UsersList session={session} list={list} label='watchlist' />
|
||||
</HydrationBoundary>
|
||||
);
|
||||
};
|
||||
@@ -3,5 +3,5 @@ export const paths = [
|
||||
{ path: '/popular', title: 'Popular' },
|
||||
{ path: '/top', title: 'Top rated' },
|
||||
{ path: '/favorites', title: 'Favorites' },
|
||||
{ path: '/watch-list', title: 'Watch list' }
|
||||
{ path: '/watchlist', title: 'Watchlist' }
|
||||
];
|
||||
@@ -8,6 +8,7 @@ import { usePathname } from 'next/navigation';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';
|
||||
import Nav from '@/components/ui/nav';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
import { paths } from './constants';
|
||||
|
||||
@@ -22,7 +23,7 @@ export const MobileNavigation = () => {
|
||||
<Menu size={19} />
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent className='flex w-44 flex-col gap-2 p-2'>
|
||||
<DropdownMenuContent className='flex w-44 flex-col gap-2 rounded-none rounded-bl-lg border-none p-2'>
|
||||
{paths.map(({ path, title }) => (
|
||||
<DropdownMenuItem key={path} asChild>
|
||||
<Link href={path} prefetch={path !== '/'}>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const TITLE = process.env.NEXT_PUBLIC_TITLE || 'Movie Advisor';
|
||||
export const TITLE = process.env.NEXT_PUBLIC_TITLE || 'Movies Advisor';
|
||||
|
||||
const BASE =
|
||||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
|
||||
|
||||
Generated
+6
-6
@@ -5804,9 +5804,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/cross-spawn": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
||||
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"path-key": "^3.1.0",
|
||||
@@ -15976,9 +15976,9 @@
|
||||
}
|
||||
},
|
||||
"cross-spawn": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
||||
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"path-key": "^3.1.0",
|
||||
|
||||
Reference in new issue
Block a user