Skip to content

Commit 1973a34

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 14bc619 commit 1973a34

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

frontend/src/plugins/layout/OutlinePlugin.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import {
88
findOutlineElements,
99
useActiveOutline,
1010
} from "../../components/editor/chrome/panels/outline/useActiveOutline";
11-
import type { IStatelessPlugin, IStatelessPluginProps } from "../stateless-plugin";
11+
import type {
12+
IStatelessPlugin,
13+
IStatelessPluginProps,
14+
} from "../stateless-plugin";
1215

1316
interface Data {
1417
label?: string;
@@ -26,12 +29,14 @@ export class OutlinePlugin implements IStatelessPlugin<Data> {
2629
const { items } = store.get(notebookOutline);
2730
const headerElements = findOutlineElements(items);
2831

29-
const { activeHeaderId, activeOccurrences } = useActiveOutline(headerElements);
32+
const { activeHeaderId, activeOccurrences } =
33+
useActiveOutline(headerElements);
3034

3135
if (items.length === 0) {
3236
return (
3337
<div className="text-muted-foreground text-sm p-4 border border-dashed border-border rounded-lg">
34-
No outline found. Add markdown headings to your notebook to create an outline.
38+
No outline found. Add markdown headings to your notebook to create an
39+
outline.
3540
</div>
3641
);
3742
}
@@ -52,4 +57,4 @@ export class OutlinePlugin implements IStatelessPlugin<Data> {
5257
</div>
5358
);
5459
}
55-
}
60+
}

frontend/src/plugins/plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* eslint-disable @typescript-eslint/no-explicit-any */
33

44
import { NavigationMenuPlugin } from "@/plugins/layout/NavigationMenuPlugin";
5-
import { OutlinePlugin } from "./layout/OutlinePlugin";
65
import { initializeUIElement } from "../core/dom/ui-element";
76
import { registerReactComponent } from "./core/registerReactComponent";
87
import { initializeSidebarElement } from "./core/sidebar-element";
@@ -46,6 +45,7 @@ import { JsonOutputPlugin } from "./layout/JsonOutputPlugin";
4645
import { LazyPlugin } from "./layout/LazyPlugin";
4746
import { MimeRendererPlugin } from "./layout/MimeRenderPlugin";
4847
import { MermaidPlugin } from "./layout/mermaid/MermaidPlugin";
48+
import { OutlinePlugin } from "./layout/OutlinePlugin";
4949
import { ProgressPlugin } from "./layout/ProgressPlugin";
5050
import { RoutesPlugin } from "./layout/RoutesPlugin";
5151
import { StatPlugin } from "./layout/StatPlugin";

marimo/_output/outline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ def outline(*, label: str = "") -> Html:
3535
component_name="marimo-outline",
3636
args={"label": label},
3737
)
38-
)
38+
)

0 commit comments

Comments
 (0)