♻️ Update trpcs routes (#531)

This commit is contained in:
Luke Vella 2023-02-27 15:08:59 +00:00 committed by GitHub
parent d9f6a0d097
commit 18eca7cd8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 300 additions and 317 deletions

View file

@ -90,7 +90,7 @@ const Page: NextPage<CreatePollPageProps> = ({
const [isRedirecting, setIsRedirecting] = React.useState(false);
const createPoll = trpc.useMutation(["polls.create"], {
const createPoll = trpc.polls.create.useMutation({
onSuccess: (res) => {
setIsRedirecting(true);
posthog.capture("created poll", {