mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 17:43:03 +03:00
1d7bc8a5bc
* remove duplicate import * 🚧 add new linter configuration * 🧑💻 add and run prettier * 🐛 add babel parser for linter * 🧑💻 add lint-fix command * 🚨 use lint-fix * 🚨 remove 'FC' as a type. Use const and JSX.Element * 🚨 enforce arrow function rule from linter * 🔥 delete unused file * 🚨 adding /* eslint-disable */ in failing files * 💩 add ts-expect-error to Victory components
29 lines
747 B
TypeScript
29 lines
747 B
TypeScript
/* eslint-disable */
|
|
"use client";
|
|
import { redirect } from "next/navigation";
|
|
|
|
import { useSupabase } from "../supabase-provider";
|
|
import { ConfigForm, ConfigTitle } from "./components";
|
|
import { ApiKeyConfig } from "./components/ApiKeyConfig";
|
|
|
|
// TODO: Use states instead of NEXTJS router to open and close modal
|
|
const ConfigPage = (): JSX.Element => {
|
|
const { session } = useSupabase();
|
|
|
|
if (session === null) {
|
|
redirect("/login");
|
|
}
|
|
|
|
return (
|
|
<main className="w-full flex flex-col">
|
|
<section className="w-full outline-none pt-10 flex flex-col gap-5 items-center justify-center p-6">
|
|
<ConfigTitle />
|
|
<ConfigForm />
|
|
<ApiKeyConfig />
|
|
</section>
|
|
</main>
|
|
);
|
|
};
|
|
|
|
export default ConfigPage;
|