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:
parent
0256f97034
commit
865d6f7681
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue