Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Feb 26, 2024
1 parent 2dcefdc commit 65606b1
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions front/components/assistant_builder/AssistantBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import "react-image-crop/dist/ReactCrop.css";
import {
Button,
CircleIcon,
DropdownMenu,
ContextItem,
Modal,
Page,
PlayIcon,
SquareIcon,
Tab,
Expand Down Expand Up @@ -54,7 +50,6 @@ import {
} from "@app/components/sparkle/AppLayoutTitle";
import { subNavigationBuild } from "@app/components/sparkle/navigation";
import { SendNotificationsContext } from "@app/components/sparkle/Notification";
import { CONNECTOR_CONFIGURATIONS } from "@app/lib/connector_providers";
import { isUpgraded } from "@app/lib/plans/plan_codes";
import { useSlackChannelsLinkedWithAgent, useUser } from "@app/lib/swr";

Expand Down Expand Up @@ -808,50 +803,6 @@ function TryModalInBuilder({
);
}

function AssistantBuilderTextArea({
placeholder,
value,
onChange,
error,
name,
}: {
placeholder: string;
value: string | null;
onChange: (value: string) => void;
error?: string | null;
name: string;
}) {
return (
<textarea
name="name"
id={name}
className={classNames(
"block max-h-full min-h-48 w-full min-w-0 grow rounded-md text-sm text-sm",
!error
? "border-gray-300 focus:border-action-500 focus:ring-action-500"
: "border-red-500 focus:border-red-500 focus:ring-red-500",
"bg-structure-50 stroke-structure-50",
"resize-none"
)}
placeholder={placeholder}
value={value ?? ""}
onChange={(e) => {
onChange(e.target.value);
}}
/>
);
}

function ActionModeSection({
children,
show,
}: {
children: ReactNode;
show: boolean;
}) {
return show && <div className="flex flex-col gap-6">{children}</div>;
}

function removeLeadingAt(handle: string) {
return handle.startsWith("@") ? handle.slice(1) : handle;
}

0 comments on commit 65606b1

Please sign in to comment.