File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,27 +26,27 @@ export default function ClientsPage() {
2626 const [ searchQuery , setSearchQuery ] = useState ( '' ) ;
2727
2828 // tRPC queries and mutations
29- const clientsQuery = trpc . client . list . useQuery ( {
29+ const clientsQuery = trpc . clients . list . useQuery ( {
3030 userId : DEMO_USER_ID ,
3131 search : searchQuery || undefined ,
3232 active : true ,
3333 } ) ;
3434
35- const createMutation = trpc . client . create . useMutation ( {
35+ const createMutation = trpc . clients . create . useMutation ( {
3636 onSuccess : ( ) => {
3737 clientsQuery . refetch ( ) ;
3838 setShowForm ( false ) ;
3939 } ,
4040 } ) ;
4141
42- const updateMutation = trpc . client . update . useMutation ( {
42+ const updateMutation = trpc . clients . update . useMutation ( {
4343 onSuccess : ( ) => {
4444 clientsQuery . refetch ( ) ;
4545 setEditingClient ( null ) ;
4646 } ,
4747 } ) ;
4848
49- const deleteMutation = trpc . client . delete . useMutation ( {
49+ const deleteMutation = trpc . clients . delete . useMutation ( {
5050 onSuccess : ( ) => {
5151 clientsQuery . refetch ( ) ;
5252 } ,
You can’t perform that action at this time.
0 commit comments