Skip to content

Commit 4953f14

Browse files
committed
Customer information automation
1 parent 5e55413 commit 4953f14

5 files changed

Lines changed: 407 additions & 116 deletions

File tree

src/app/clients/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)