mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-14 17:36:49 +02:00
♻️ Update trpcs routes (#531)
This commit is contained in:
parent
d9f6a0d097
commit
18eca7cd8c
32 changed files with 300 additions and 317 deletions
|
@ -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", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue