mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 02:09:17 +00:00
Add share to header
This commit is contained in:
parent
3cd0633c01
commit
ee3dea74cf
@ -9,6 +9,7 @@ import {
|
|||||||
IconUndo,
|
IconUndo,
|
||||||
IconRedo,
|
IconRedo,
|
||||||
IconEdit,
|
IconEdit,
|
||||||
|
IconShareStroked,
|
||||||
} from "@douyinfe/semi-icons";
|
} from "@douyinfe/semi-icons";
|
||||||
import { Link, useNavigate } from "react-router-dom";
|
import { Link, useNavigate } from "react-router-dom";
|
||||||
import icon from "../../assets/icon_dark_64.png";
|
import icon from "../../assets/icon_dark_64.png";
|
||||||
@ -1355,8 +1356,22 @@ export default function ControlPanel({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{layout.header && header()}
|
<div>
|
||||||
{layout.toolbar && toolbar()}
|
{layout.header && (
|
||||||
|
<div className="flex justify-between items-center me-7">
|
||||||
|
{header()}
|
||||||
|
<Button
|
||||||
|
type="primary"
|
||||||
|
className="text-base me-2 pe-6 ps-5 py-[18px] rounded-md"
|
||||||
|
size="default"
|
||||||
|
icon={<IconShareStroked />}
|
||||||
|
>
|
||||||
|
Share
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{layout.toolbar && toolbar()}
|
||||||
|
</div>
|
||||||
<Modal
|
<Modal
|
||||||
modal={modal}
|
modal={modal}
|
||||||
exportData={exportData}
|
exportData={exportData}
|
||||||
@ -1579,7 +1594,7 @@ export default function ControlPanel({
|
|||||||
width={54}
|
width={54}
|
||||||
src={icon}
|
src={icon}
|
||||||
alt="logo"
|
alt="logo"
|
||||||
className="ms-8 min-w-[54px]"
|
className="ms-7 min-w-[54px]"
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<div className="ms-1 mt-1">
|
<div className="ms-1 mt-1">
|
||||||
|
Loading…
Reference in New Issue
Block a user