mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-08-17 10:20:35 +03:00
fix(frontend): remove quivr assistant for now (#2801)
# Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
This commit is contained in:
parent
f78464c941
commit
12de0f7b03
@ -1,5 +1,5 @@
|
||||
"use client";
|
||||
import { usePathname } from "next/navigation";
|
||||
import { redirect, usePathname } from "next/navigation";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import { Assistant } from "@/lib/api/assistants/types";
|
||||
@ -13,7 +13,7 @@ import { redirectToLogin } from "@/lib/router/redirectToLogin";
|
||||
import { AssistantModal } from "./AssistantModal/AssistantModal";
|
||||
import styles from "./page.module.scss";
|
||||
|
||||
const Search = (): JSX.Element => {
|
||||
const Assistants = (): JSX.Element => {
|
||||
const pathname = usePathname();
|
||||
const { session } = useSupabase();
|
||||
const [assistants, setAssistants] = useState<Assistant[]>([]);
|
||||
@ -26,6 +26,8 @@ const Search = (): JSX.Element => {
|
||||
const { getAssistants } = useAssistants();
|
||||
|
||||
useEffect(() => {
|
||||
// REMOVE FOR NOW ACCESS TO QUIVR ASSISTANTS
|
||||
redirect("/search");
|
||||
if (session === null) {
|
||||
redirectToLogin();
|
||||
}
|
||||
@ -104,4 +106,4 @@ const Search = (): JSX.Element => {
|
||||
);
|
||||
};
|
||||
|
||||
export default Search;
|
||||
export default Assistants;
|
||||
|
@ -11,7 +11,6 @@ import { useUserSettingsContext } from "@/lib/context/UserSettingsProvider/hooks
|
||||
|
||||
import styles from "./Menu.module.scss";
|
||||
import { AnimatedDiv } from "./components/AnimationDiv";
|
||||
import { AssistantsButton } from "./components/AssistantsButton/AssistantsButton";
|
||||
import { DiscussionButton } from "./components/DiscussionButton/DiscussionButton";
|
||||
import { HomeButton } from "./components/HomeButton/HomeButton";
|
||||
import { ProfileButton } from "./components/ProfileButton/ProfileButton";
|
||||
@ -74,7 +73,6 @@ export const Menu = (): JSX.Element => {
|
||||
<DiscussionButton />
|
||||
<HomeButton />
|
||||
<StudioButton />
|
||||
<AssistantsButton />
|
||||
<ThreadsButton />
|
||||
</div>
|
||||
<div className={styles.block}>
|
||||
|
Loading…
Reference in New Issue
Block a user