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:
Antoine Dewez 2024-07-08 11:30:17 +02:00 committed by GitHub
parent f78464c941
commit 12de0f7b03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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}>