feat: replace MycrozineTemplate with MycroZineGenerator in toolbar and context menu

- Updated CustomToolbar.tsx to use MycroZineGenerator tool
- Updated CustomContextMenu.tsx to use MycroZineGenerator in Create Tool submenu
- Updated overrides.tsx with MycroZineGenerator tool definition
- Removed all references to old MycrozineTemplate

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2025-12-15 19:44:08 -05:00
parent 0256f97034
commit 865d6f7681
3 changed files with 12 additions and 12 deletions

View File

@ -252,7 +252,7 @@ export function CustomContextMenu(props: TLUiContextMenuProps) {
<TldrawUiMenuItem {...tools.SlideShape} />
<TldrawUiMenuItem {...tools.VideoChat} />
<TldrawUiMenuItem {...tools.FathomMeetings} />
<TldrawUiMenuItem {...tools.MycrozineTemplate} />
<TldrawUiMenuItem {...tools.MycroZineGenerator} />
</TldrawUiMenuSubmenu>
</TldrawUiMenuGroup>

View File

@ -692,13 +692,13 @@ export function CustomToolbar() {
isSelected={tools["Markdown"].id === editor.getCurrentToolId()}
/>
)}
{tools["MycrozineTemplate"] && (
{tools["MycroZineGenerator"] && (
<TldrawUiMenuItem
{...tools["MycrozineTemplate"]}
icon="mycrozinetemplate"
label="MycrozineTemplate"
{...tools["MycroZineGenerator"]}
icon="zine"
label="MycroZine Generator"
isSelected={
tools["MycrozineTemplate"].id === editor.getCurrentToolId()
tools["MycroZineGenerator"].id === editor.getCurrentToolId()
}
/>
)}

View File

@ -142,14 +142,14 @@ export const overrides: TLUiOverrides = {
type: "Markdown",
onSelect: () => editor.setCurrentTool("Markdown"),
},
MycrozineTemplate: {
id: "MycrozineTemplate",
icon: "rectangle",
label: "Mycrozine Template",
type: "MycrozineTemplate",
MycroZineGenerator: {
id: "MycroZineGenerator",
icon: "zine",
label: "MycroZine Generator",
type: "MycroZineGenerator",
kbd: "ctrl+shift+z",
readonlyOk: true,
onSelect: () => editor.setCurrentTool("MycrozineTemplate"),
onSelect: () => editor.setCurrentTool("MycroZineGenerator"),
},
Prompt: {
id: "Prompt",