Allow duplicating a poll (#804)

This commit is contained in:
Luke Vella 2023-08-09 09:48:02 +01:00 committed by GitHub
parent f68579eef2
commit 996743caaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 699 additions and 224 deletions

View file

@ -1,6 +1,5 @@
import { EyeIcon, MessageCircleIcon, VoteIcon } from "@rallly/icons";
import { cn } from "@rallly/ui";
import { Badge } from "@rallly/ui/badge";
import {
Card,
CardContent,
@ -16,6 +15,7 @@ import React from "react";
import { useFormContext } from "react-hook-form";
import { Trans } from "react-i18next";
import { ProBadge } from "@/components/pro-badge";
import { usePlan } from "@/contexts/plan";
export type PollSettingsFormData = {
@ -58,9 +58,7 @@ export const PollSettingsForm = ({ children }: React.PropsWithChildren) => {
<CardTitle>
<Trans i18nKey="settings" />
</CardTitle>
<Badge>
<Trans i18nKey="planPro" />
</Badge>
<ProBadge />
</div>
<CardDescription>
<Trans