Soft delete and house keeping endpoint (#184)

This commit is contained in:
Luke Vella 2022-05-20 15:14:46 +01:00 committed by GitHub
parent 97e189132f
commit 3299ba2030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 326 additions and 14 deletions

View file

@ -19,6 +19,7 @@ import { useUpdatePollMutation } from "./poll/mutations";
import NotificationsToggle from "./poll/notifications-toggle";
import PollSubheader from "./poll/poll-subheader";
import TruncatedLinkify from "./poll/truncated-linkify";
import { useTouchBeacon } from "./poll/use-touch-beacon";
import { UserAvatarProvider } from "./poll/user-avatar";
import VoteIcon from "./poll/vote-icon";
import { usePoll } from "./poll-context";
@ -37,6 +38,8 @@ const PollPage: NextPage = () => {
const { participants } = useParticipants();
const router = useRouter();
useTouchBeacon(poll.pollId);
useMount(() => {
const path = poll.role === "admin" ? "admin" : "p";