♻️ Clean up trpc code and add global client error handling (#1549)

This commit is contained in:
Luke Vella 2025-02-09 14:16:57 +07:00 committed by GitHub
parent 4e603d737f
commit 5437b91c10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 167 additions and 163 deletions

View file

@ -24,12 +24,12 @@ import React from "react";
import { useForm } from "react-hook-form";
import { z } from "zod";
import { trpc } from "@/app/providers";
import { DateIconInner } from "@/components/date-icon";
import { useParticipants } from "@/components/participants-provider";
import { ConnectedScoreSummary } from "@/components/poll/score-summary";
import { VoteSummaryProgressBar } from "@/components/vote-summary-progress-bar";
import { usePoll } from "@/contexts/poll";
import { trpc } from "@/trpc/client";
import { useDayjs } from "@/utils/dayjs";
const formSchema = z.object({