Merge branch 'db' of personal:logspace-ai/langflow into db
This commit is contained in:
commit
c1b4b1d360
1 changed files with 5 additions and 4 deletions
|
|
@ -24,6 +24,7 @@ import { alertContext } from "../../../../contexts/alertContext";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { undoRedoContext } from "../../../../contexts/undoRedoContext";
|
import { undoRedoContext } from "../../../../contexts/undoRedoContext";
|
||||||
import FlowSettingsModal from "../../../../modals/flowSettingsModal";
|
import FlowSettingsModal from "../../../../modals/flowSettingsModal";
|
||||||
|
import { Button } from "../../../ui/button";
|
||||||
|
|
||||||
export const MenuBar = ({ flows, tabId }) => {
|
export const MenuBar = ({ flows, tabId }) => {
|
||||||
const { updateFlow, setTabId, addFlow } = useContext(TabsContext);
|
const { updateFlow, setTabId, addFlow } = useContext(TabsContext);
|
||||||
|
|
@ -44,9 +45,9 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex gap-2 items-center">
|
<div className="flex gap-2 items-center">
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<ChevronLeft className="w-5" />
|
<ChevronLeft className="w-4" />
|
||||||
</Link>
|
</Link>
|
||||||
<div className="flex items-center font-medium text-sm rounded-md py-1 px-1.5 bg-background gap-0.5">
|
<Button variant="primary" size="sm">
|
||||||
{/* <RenameLabel
|
{/* <RenameLabel
|
||||||
value={current_flow.name}
|
value={current_flow.name}
|
||||||
setValue={(value) => {
|
setValue={(value) => {
|
||||||
|
|
@ -60,7 +61,7 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
setRename={setRename}
|
setRename={setRename}
|
||||||
/> */}
|
/> */}
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger className="px-1 gap-2 flex items-center">
|
<DropdownMenuTrigger className="gap-2 flex items-center">
|
||||||
{current_flow.name}
|
{current_flow.name}
|
||||||
<ChevronDown className="w-4 h-4" />
|
<ChevronDown className="w-4 h-4" />
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
|
|
@ -118,7 +119,7 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</div>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue