8000 feat(export): add help button left of render button by johannboehme · Pull Request #15 · johannboehme/tk-1 · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 23 additions & 10 deletions frontend/src/editor/components/EditorShell.tsx
70FB
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ReactNode, useEffect, useState } from "react";
import { Link } from "react-router-dom";
import { ChunkyButton } from "./ChunkyButton";
import { ChevronLeftIcon, DownloadIcon } from "./icons";
import { ChevronLeftIcon, DownloadIcon, HelpIcon } from "./icons";
import { BottomSheet } from "./BottomSheet";
import { useEditorStore } from "../store";

Expand Down Expand Up @@ -267,15 +267,28 @@ function TopBar({
editor
</span>
</div>
<ChunkyButton
variant="primary"
size="md"
>
disabled={submitting}
iconLeft={<DownloadIcon />}
>
{submitting ? "Rendering…" : "Render"}
</ChunkyButton>
<div className="flex items-center gap-2">
<ChunkyButton
variant="secondary"
size="md"
className="aspect-square"
aria-label="Help"
=>
window.dispatchEvent(new KeyboardEvent("keydown", { key: "?", bubbles: true }))
}
>
<HelpIcon />
</ChunkyButton>
<ChunkyButton
variant="primary"
size="md"
>
disabled={submitting}
iconLeft={<DownloadIcon />}
>
{submitting ? "Rendering…" : "Render"}
</ChunkyButton>
</div>
</header>
);
}
Loading
0