mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-15 09:56:47 +02:00
Updated links model and poll page (#206)
* Improved sharing * Updated desktop poll
This commit is contained in:
parent
c4cbf2f6bb
commit
2ead375b42
50 changed files with 955 additions and 1848 deletions
|
@ -95,7 +95,7 @@ const Page: NextPage<CreatePollPageProps> = ({
|
|||
const plausible = usePlausible();
|
||||
|
||||
const createPoll = trpc.useMutation(["polls.create"], {
|
||||
onSuccess: (poll) => {
|
||||
onSuccess: (res) => {
|
||||
setIsRedirecting(true);
|
||||
plausible("Created poll", {
|
||||
props: {
|
||||
|
@ -104,7 +104,7 @@ const Page: NextPage<CreatePollPageProps> = ({
|
|||
},
|
||||
});
|
||||
setPersistedFormData(initialNewEventData);
|
||||
router.replace(`/admin/${poll.urlId}`);
|
||||
router.replace(`/admin/${res.urlId}?sharing=true`);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue