Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Nov 4, 2024
1 parent 8dbf96d commit d0ee106
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/assistant-select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { OC_HAS_SEEN_CUSTOM_ASSISTANTS_ALERT } from "@/constants";

interface AssistantSelectProps {
userId: string | undefined;
hasChatStarted: boolean;
chatStarted: boolean;
}

function AssistantSelectComponent(props: AssistantSelectProps) {
Expand Down Expand Up @@ -153,7 +153,7 @@ function AssistantSelectComponent(props: AssistantSelectProps) {
<AlertNewAssistantsFeature
showAlert={showAlert}
setShowAlert={setShowAlert}
shouldRender={!props.hasChatStarted}
shouldRender={!props.chatStarted}
/>
</div>
</div>
Expand Down
8 changes: 2 additions & 6 deletions src/components/chat-interface/composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { type FC } from "react";
import { TooltipIconButton } from "@/components/ui/assistant-ui/tooltip-icon-button";
import { SendHorizontalIcon } from "lucide-react";
import { AssistantSelect } from "../assistant-select";
import { AlertNewAssistantsFeature } from "../assistant-select/alert-new-feature";

const CircleStopIcon = () => {
return (
Expand All @@ -23,17 +22,14 @@ const CircleStopIcon = () => {
};

interface ComposerProps {
hasChatStarted: boolean;
chatStarted: boolean;
userId: string | undefined;
}

export const Composer: FC<ComposerProps> = (props: ComposerProps) => {
return (
<ComposerPrimitive.Root className="focus-within:border-aui-ring/20 flex w-full min-h-[64px] flex-wrap items-center rounded-lg border px-2.5 shadow-sm transition-colors ease-in bg-white">
<AssistantSelect
userId={props.userId}
hasChatStarted={props.hasChatStarted}
/>
<AssistantSelect userId={props.userId} chatStarted={props.chatStarted} />
<ComposerPrimitive.Input
autoFocus
placeholder="Write a message..."
Expand Down
4 changes: 2 additions & 2 deletions src/components/chat-interface/thread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const Thread: FC<ThreadProps> = (props: ThreadProps) => {
{!hasChatStarted && (
<ThreadWelcome
handleQuickStart={handleQuickStart}
composer={<Composer userId={props.userId} />}
composer={<Composer chatStarted={false} userId={props.userId} />}
/>
)}
<ThreadPrimitive.Messages
Expand All @@ -143,7 +143,7 @@ export const Thread: FC<ThreadProps> = (props: ThreadProps) => {
modelName={modelName}
setModelName={setModelName}
/>
<Composer userId={props.userId} />
<Composer chatStarted={true} userId={props.userId} />
</div>
)}
</div>
Expand Down

0 comments on commit d0ee106

Please sign in to comment.