fix: suid screen getting stuck (#4229)

This commit is contained in:
Dhruwang Jariwala
2024-11-06 10:09:07 +05:30
committed by GitHub
parent bee0ab07b4
commit fc3c044e00

View File

@@ -1,5 +1,7 @@
"use client";
import { CheckCircle2Icon } from "lucide-react";
import { getTranslations } from "next-intl/server";
import { useTranslations } from "next-intl";
import Image from "next/image";
import Link from "next/link";
import { TSurveySingleUse } from "@formbricks/types/surveys/types";
@@ -10,7 +12,7 @@ type SurveyLinkUsedProps = {
};
export const SurveyLinkUsed = async ({ singleUseMessage }: SurveyLinkUsedProps) => {
const t = await getTranslations();
const t = useTranslations();
const defaultHeading = t("s.survey_already_answered_heading");
const defaultSubheading = t("s.survey_already_answered_subheading");
return (