Skip to content

Commit

Permalink
Merge pull request #3426 from quantified-uncertainty/ai-remove-x
Browse files Browse the repository at this point in the history
Remove close button from actions for Squiggle AI
  • Loading branch information
OAGr authored Nov 8, 2024
2 parents aaf1b7b + af88b5c commit 5865b38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions packages/hub/src/app/ai/WorkflowViewer/SelectedNodeSideView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import clsx from "clsx";
import { FC, useMemo } from "react";

import { ClientArtifact, ClientStep } from "@quri/squiggle-ai";
import { ChevronLeftIcon, ChevronRightIcon, XIcon } from "@quri/ui";
import { ChevronLeftIcon, ChevronRightIcon } from "@quri/ui";

import { useAvailableHeight } from "@/hooks/useAvailableHeight";

Expand Down Expand Up @@ -34,10 +34,9 @@ const NavButton: FC<{

export const SelectedNodeSideView: FC<{
selectedNode: ClientStep;
onClose: () => void;
onSelectPreviousNode?: () => void;
onSelectNextNode?: () => void;
}> = ({ selectedNode, onClose, onSelectPreviousNode, onSelectNextNode }) => {
}> = ({ selectedNode, onSelectPreviousNode, onSelectNextNode }) => {
const { ref, height } = useAvailableHeight();

const selectedNodeCodeOutput = useMemo(() => {
Expand Down Expand Up @@ -70,13 +69,6 @@ export const SelectedNodeSideView: FC<{
label="Next Node"
icon={ChevronRightIcon}
/>
<button
onClick={onClose}
className="text-slate-400 hover:text-slate-600"
aria-label="Close"
>
<XIcon size={20} />
</button>
</div>
</div>
<div className="space-y-4">
Expand Down
1 change: 0 additions & 1 deletion packages/hub/src/app/ai/WorkflowViewer/WorkflowActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export const WorkflowActions: FC<{
{hasSelectedNode && (
<SelectedNodeSideView
selectedNode={workflow.steps[selectedNodeIndex]}
onClose={() => setSelectedNodeIndex(null)}
onSelectPreviousNode={selectPreviousNode}
onSelectNextNode={selectNextNode}
/>
Expand Down

0 comments on commit 5865b38

Please sign in to comment.