Skip to content

Commit

Permalink
clean up names
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 15, 2024
1 parent a1c419c commit 02b817f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions web/src/app/chat/sessionSidebar/HistorySidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { SettingsContext } from "@/components/settings/SettingsProvider";
import { AssistantsIconSkeleton } from "@/components/icons/icons";
import { PagesTab } from "./PagesTab";
import { pageType } from "./types";
import LogoType from "@/components/header/LogoType";
import LogoWithText from "@/components/header/LogoWithText";

interface HistorySidebarProps {
page: pageType;
Expand Down Expand Up @@ -102,7 +102,7 @@ export const HistorySidebar = forwardRef<HTMLDivElement, HistorySidebarProps>(
`}
>
<div className="pl-2">
<LogoType
<LogoWithText
showArrow={true}
toggled={toggled}
page={page}
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import CardSection from "@/components/admin/CardSection";
import { Suspense } from "react";
import PostHogPageView from "./PostHogPageView";
import Script from "next/script";
import LogoType from "@/components/logo/Logo";
import { LogoType } from "@/components/logo/Logo";

const inter = Inter({
subsets: ["latin"],
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/chat_search/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Link from "next/link";
import { pageType } from "@/app/chat/sessionSidebar/types";
import { useRouter } from "next/navigation";
import { ChatBanner } from "@/app/chat/ChatBanner";
import LogoType from "../header/LogoType";
import LogoWithText from "../header/LogoWithText";

export default function FunctionalHeader({
page,
Expand Down Expand Up @@ -66,7 +66,7 @@ export default function FunctionalHeader({
return (
<div className="left-0 sticky top-0 z-20 w-full relative flex">
<div className="items-end flex mt-2 mr-2 cursor-pointer text-text-700 relative flex w-full">
<LogoType
<LogoWithText
assistantId={currentChatSession?.persona_id}
page={page}
toggleSidebar={toggleSidebar}
Expand All @@ -93,7 +93,7 @@ export default function FunctionalHeader({
</div>

<div className="invisible">
<LogoType
<LogoWithText
page={page}
toggleSidebar={toggleSidebar}
handleNewChat={handleNewChat}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Logo } from "../logo/Logo";
import Link from "next/link";
import { LogoComponent } from "@/app/chat/shared_chat_search/FixedLogo";

export default function LogoType({
export default function LogoWithText({
toggleSidebar,
hideOnMobile,
handleNewChat,
Expand Down

0 comments on commit 02b817f

Please sign in to comment.