diff --git a/apps/web/src/app/[locale]/quick-create/page.tsx b/apps/web/src/app/[locale]/quick-create/page.tsx index 2fb5dbc3b..f0ede63c5 100644 --- a/apps/web/src/app/[locale]/quick-create/page.tsx +++ b/apps/web/src/app/[locale]/quick-create/page.tsx @@ -4,14 +4,18 @@ import { LogInIcon } from "lucide-react"; import Link from "next/link"; import { notFound } from "next/navigation"; -import { QuickCreateWidget } from "@/features/quick-create/quick-create-widget"; -import { isSelfHosted } from "@/utils/constants"; +import { + isQuickCreateEnabled, + QuickCreateWidget, +} from "@/features/quick-create"; +import { getTranslation } from "@/i18n/server"; export default async function QuickCreatePage() { - if (isSelfHosted) { - // self hosted users should not see this page + if (!isQuickCreateEnabled) { notFound(); } + + const { t } = await getTranslation(); return (
@@ -28,7 +32,7 @@ export default async function QuickCreatePage() { - Login + {t("login")}