mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 21:07:05 -06:00
feat(breadcrumb): set up dropdown
This commit is contained in:
parent
5f215b14c2
commit
a02235f2bd
@ -3,6 +3,8 @@ import "./Breadcrumb.css";
|
|||||||
import ActionButton from "./react/ActionButton";
|
import ActionButton from "./react/ActionButton";
|
||||||
import { useNoteContext } from "./react/hooks";
|
import { useNoteContext } from "./react/hooks";
|
||||||
import NoteLink from "./react/NoteLink";
|
import NoteLink from "./react/NoteLink";
|
||||||
|
import Dropdown from "./react/Dropdown";
|
||||||
|
import Icon from "./react/Icon";
|
||||||
|
|
||||||
export default function Breadcrumb() {
|
export default function Breadcrumb() {
|
||||||
const { noteContext } = useNoteContext();
|
const { noteContext } = useNoteContext();
|
||||||
@ -31,10 +33,14 @@ function BreadcrumbItem({ notePath }: { notePath: string }) {
|
|||||||
|
|
||||||
function BreadcrumbSeparator({ notePath }: { notePath: string}) {
|
function BreadcrumbSeparator({ notePath }: { notePath: string}) {
|
||||||
return (
|
return (
|
||||||
<ActionButton
|
<Dropdown
|
||||||
icon="bx bx-chevron-right"
|
text={<Icon icon="bx bx-chevron-right" />}
|
||||||
text=""
|
noSelectButtonStyle
|
||||||
/>
|
buttonClassName="icon-action"
|
||||||
|
hideToggleArrow
|
||||||
|
>
|
||||||
|
Content goes here.
|
||||||
|
</Dropdown>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user