File tree 14 files changed +28
-20
lines changed
(dynamic-pages)/(main-pages)
private-item/[privateItemId]
14 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
3
- import { Button } from '@/components/ui/button' ;
3
+ import { T } from '@/components/ui/Typography' ;
4
+ import { Button } from '@/components/ui/Button' ;
4
5
import { insertPrivateItemAction } from '@/data/user/privateItems' ;
5
6
import { useMutation , useQueryClient } from '@tanstack/react-query' ;
6
7
import { useRouter } from 'next/navigation' ;
@@ -34,7 +35,7 @@ export const ClientPage = () => {
34
35
const [ description , setDescription ] = useState ( '' ) ;
35
36
return (
36
37
< form
37
- className = "flex flex-col space-y-4"
38
+ className = "flex flex-col space-y-4 pt-8 "
38
39
onSubmit = { ( event ) => {
39
40
event . preventDefault ( ) ;
40
41
const formData = new FormData ( event . target as HTMLFormElement ) ;
@@ -45,13 +46,11 @@ export const ClientPage = () => {
45
46
} }
46
47
>
47
48
< div >
48
- < h1 className = "mt-1 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl lg:text-5xl" >
49
- Create Private Item
50
- </ h1 >
51
- < p >
49
+ < T . H1 > Create Private Item</ T . H1 >
50
+ < T . Subtle >
52
51
This item will be private and only you logged in will be able to
53
52
create it.
54
- </ p >
53
+ </ T . Subtle >
55
54
</ div >
56
55
< div className = "space-y-2" >
57
56
< label
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
- import { Button } from '@/components/ui/button ' ;
2
+ import { Button } from '@/components/ui/Button ' ;
3
3
import {
4
4
Dialog ,
5
5
DialogContent ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async function PrivateItem({ privateItemId }: { privateItemId: string }) {
11
11
< div className = "space-y-2" >
12
12
< div className = "space-y-4" >
13
13
< Link
14
- href = "/"
14
+ href = "/dashboard "
15
15
className = "text-sm text-blue-600 text-underline flex items-center space-x-2"
16
16
>
17
17
< ArrowLeft /> < span > Back to dashboard</ span >
Original file line number Diff line number Diff line change 1
- import { Button } from '@/components/ui/button ' ;
1
+ import { Button } from '@/components/ui/Button ' ;
2
2
import { Table } from '@/types' ;
3
3
import Link from 'next/link' ;
4
4
Original file line number Diff line number Diff line change 1
- import { Button } from '@/components/ui/button ' ;
1
+ import { Button } from '@/components/ui/Button ' ;
2
2
import { Table } from '@/types' ;
3
3
import Link from 'next/link' ;
4
4
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
- import { Button } from '@/components/ui/button ' ;
2
+ import { Button } from '@/components/ui/Button ' ;
3
3
import {
4
4
Dialog ,
5
5
DialogContent ,
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
3
- import { Button } from '@/components/ui/button ' ;
3
+ import { Button } from '@/components/ui/Button ' ;
4
4
import { insertItemAction } from '@/data/anon/items' ;
5
5
import { useMutation , useQueryClient } from '@tanstack/react-query' ;
6
6
import { useRouter } from 'next/navigation' ;
Original file line number Diff line number Diff line change @@ -7,8 +7,12 @@ const queryClient = new QueryClient();
7
7
export const ClientLayout = ( { children } : { children : React . ReactNode } ) => {
8
8
return (
9
9
< main className = "flex-1" >
10
- < QueryClientProvider client = { queryClient } > { children } </ QueryClientProvider >
11
- < Toaster />
10
+ < div className = "container" >
11
+ < QueryClientProvider client = { queryClient } >
12
+ { children }
13
+ </ QueryClientProvider >
14
+ < Toaster />
15
+ </ div >
12
16
</ main >
13
17
) ;
14
18
} ;
Original file line number Diff line number Diff line change 1
1
import { classNames } from '@/utils/classNames' ;
2
2
import { useMemo } from 'react' ;
3
3
import { useState } from 'react' ;
4
- import { Button } from '../ui/button ' ;
4
+ import { Button } from '../ui/Button ' ;
5
5
import { Label } from '@/components/ui/label' ;
6
6
import { T } from '@/components/ui/Typography' ;
7
7
import Link from 'next/link' ;
Original file line number Diff line number Diff line change 1
1
import { classNames } from '@/utils/classNames' ;
2
2
import { useState } from 'react' ;
3
- import { Button } from '@/components/ui/button ' ;
3
+ import { Button } from '@/components/ui/Button ' ;
4
4
import { Label } from '@/components/ui/label' ;
5
5
import Link from 'next/link' ;
6
6
Original file line number Diff line number Diff line change 6
6
HoverCardTrigger ,
7
7
} from '@/components/ui/HoverCard' ;
8
8
import { T } from '@/components/ui/Typography' ;
9
- import { Button } from '@/components/ui/button ' ;
9
+ import { Button } from '@/components/ui/Button ' ;
10
10
11
11
function capitalize ( word : string ) {
12
12
const lower = word . toLowerCase ( ) ;
Original file line number Diff line number Diff line change 3
3
import * as React from 'react' ;
4
4
import { useTheme } from 'next-themes' ;
5
5
6
- import { Button } from '@/components/ui/button ' ;
6
+ import { Button } from '@/components/ui/Button ' ;
7
7
import {
8
8
DropdownMenu ,
9
9
DropdownMenuContent ,
Original file line number Diff line number Diff line change 1
- export const DEV_PORT = 4000 ;
1
+ export const DEV_PORT = 3000 ;
2
2
export const PRODUCT_NAME = 'NextBase Open-Source Starter' ;
Original file line number Diff line number Diff line change @@ -6352,6 +6352,11 @@ next-sitemap@^3.1.52:
6352
6352
" @corex/deepmerge" " ^4.0.29"
6353
6353
minimist "^1.2.7"
6354
6354
6355
+ next-themes@^0.2.1 :
6356
+ version "0.2.1"
6357
+ resolved "https://registry.yarnpkg.com/next-themes/-/next-themes-0.2.1.tgz#0c9f128e847979daf6c67f70b38e6b6567856e45"
6358
+ integrity sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==
6359
+
6355
6360
next-tick@^1.1.0 :
6356
6361
version "1.1.0"
6357
6362
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb"
You canβt perform that action at this time.
0 commit comments