From afa055f0048e7bde035eb87b741e3a471404579d Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 31 Mar 2023 16:43:11 +0200 Subject: [PATCH] fix typo --- .../environments/[environmentId]/surveys/SurveyList.tsx | 8 +++----- apps/web/components/shared/WidgetStatusIndicator.tsx | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/web/app/environments/[environmentId]/surveys/SurveyList.tsx b/apps/web/app/environments/[environmentId]/surveys/SurveyList.tsx index b18ed25ca6..ee3737265b 100644 --- a/apps/web/app/environments/[environmentId]/surveys/SurveyList.tsx +++ b/apps/web/app/environments/[environmentId]/surveys/SurveyList.tsx @@ -9,10 +9,9 @@ import { DropdownMenuTrigger, } from "@/components/shared/DropdownMenu"; import LoadingSpinner from "@/components/shared/LoadingSpinner"; -import Modal from "@/components/shared/Modal"; import SurveyStatusIndicator from "@/components/shared/SurveyStatusIndicator"; import { deleteSurvey, useSurveys } from "@/lib/surveys/surveys"; -import { Button, ErrorComponent, ResponsiveVideo } from "@formbricks/ui"; +import { ErrorComponent } from "@formbricks/ui"; import { PlusIcon } from "@heroicons/react/24/outline"; import { EllipsisHorizontalIcon, PencilSquareIcon, TrashIcon } from "@heroicons/react/24/solid"; import Link from "next/link"; @@ -25,7 +24,6 @@ export default function SurveysList({ environmentId }) { const { surveys, mutateSurveys, isLoadingSurveys, isErrorSurveys } = useSurveys(environmentId); const [isDeleteDialogOpen, setDeleteDialogOpen] = useState(false); - const [isVideoDialogOpen, setVideoDialogOpen] = useState(false); const [activeSurvey, setActiveSurvey] = useState("" as any); const [activeSurveyIdx, setActiveSurveyIdx] = useState("" as any); @@ -69,7 +67,7 @@ export default function SurveysList({ environmentId }) { - {surveys.length === 0 && ( + {/* {surveys.length === 0 && (

Kinda lost?

- )} + )} */} {surveys .sort((a, b) => b.updatedAt - a.updatedAt) .map((survey, surveyIdx) => ( diff --git a/apps/web/components/shared/WidgetStatusIndicator.tsx b/apps/web/components/shared/WidgetStatusIndicator.tsx index f8c9ec6955..bda219a01d 100644 --- a/apps/web/components/shared/WidgetStatusIndicator.tsx +++ b/apps/web/components/shared/WidgetStatusIndicator.tsx @@ -34,7 +34,7 @@ export default function WidgetStatusIndicator({ environmentId, type }: WidgetSta icon: ArrowDownIcon, color: "slate", title: "Not implemented yet.", - subtitle: "The Formbricks widget is neede to display surveys in your app.", + subtitle: "Formbricks widget not yet implemented.", }, running: { icon: CheckIcon, color: "green", title: "Receiving data.", subtitle: "Last event received:" }, issue: {