Skip to content

Commit

Permalink
rename tool dropdown to tool action button
Browse files Browse the repository at this point in the history
  • Loading branch information
Parker-Stafford committed Oct 16, 2024
1 parent d4439e1 commit d45635b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/pages/playground/PlaygroundChatTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
} from "@phoenix/store";

import { MessageRolePicker } from "./MessageRolePicker";
import { PlaygroundToolDropDown } from "./PlaygroundToolDropdown";
import { PlaygroundToolActionButton } from "./PlaygroundToolActionButton";
import { PlaygroundInstanceProps } from "./types";

const MESSAGE_Z_INDEX = 1;
Expand Down Expand Up @@ -130,7 +130,7 @@ export function PlaygroundChatTemplate(props: PlaygroundChatTemplateProps) {
borderBottomWidth={hasTools ? "thin" : undefined}
>
<Flex direction="row" justifyContent="end" gap="size-100">
<PlaygroundToolDropDown playgroundInstanceId={id} />
<PlaygroundToolActionButton playgroundInstanceId={id} />
<Button
variant="default"
aria-label="add message"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const parseToolId = (id: Key) => {

interface PlaygroundToolsProps extends PlaygroundInstanceProps {}

export function PlaygroundToolDropDown(props: PlaygroundToolsProps) {
export function PlaygroundToolActionButton(props: PlaygroundToolsProps) {
const instanceId = props.playgroundInstanceId;
const instance = usePlaygroundContext((state) =>
state.instances.find(
Expand Down

0 comments on commit d45635b

Please sign in to comment.