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.SlideShape} />
<TldrawUiMenuItem {...tools.VideoChat} /> <TldrawUiMenuItem {...tools.VideoChat} />
<TldrawUiMenuItem {...tools.FathomMeetings} /> <TldrawUiMenuItem {...tools.FathomMeetings} />
<TldrawUiMenuItem {...tools.MycrozineTemplate} /> <TldrawUiMenuItem {...tools.MycroZineGenerator} />
</TldrawUiMenuSubmenu> </TldrawUiMenuSubmenu>
</TldrawUiMenuGroup> </TldrawUiMenuGroup>

View File

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

View File

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