Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Aug 25, 2023
1 parent b26fa63 commit 9aeb730
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/admin/settings/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { type ReactElement } from "react";
import { LayoutAuthenticated } from "~/components/layouts/layout";
import { api } from "~/utils/api";
import { useTranslations } from "next-intl";
// import { useTranslations } from "next-intl";

// !PAGE IS NOT IN USE!
const Settings = () => {
const t = useTranslations("admin");
// const t = useTranslations("admin");
const { mutate: setRegistration } = api.admin.updateGlobalOptions.useMutation();

const {
Expand All @@ -26,10 +27,10 @@ const Settings = () => {
return (
<main className="mx-auto flex w-full flex-col justify-center space-y-5 bg-base-100 p-3 sm:w-6/12">
<div className="pb-10">
<p className="text-sm text-gray-400">{t("settings.authentication")}</p>
{/* <p className="text-sm text-gray-400">{t("settings.authentication")}</p> */}
<div className="divider mt-0 p-0 text-gray-500"></div>
<div className="flex items-center justify-between">
<p>{t("settings.enableUserRegistration")}</p>
{/* <p>{t("settings.enableUserRegistration")}</p> */}
<input
type="checkbox"
checked={options?.enableRegistration}
Expand Down

0 comments on commit 9aeb730

Please sign in to comment.