From 0d4a1599089772b5b12402b5eb3c2b6751915a28 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 4 Sep 2024 09:14:45 +0200 Subject: [PATCH] refactor(create-palette-plugin): adapt to type refactor --- apps/create-palette-plugin/src/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/create-palette-plugin/src/plugin.ts b/apps/create-palette-plugin/src/plugin.ts index 487a936..cb817a7 100644 --- a/apps/create-palette-plugin/src/plugin.ts +++ b/apps/create-palette-plugin/src/plugin.ts @@ -20,7 +20,7 @@ function createPalette() { const width = cols * 200 + Math.max(0, cols - 1) * 10 + 20; const height = rows * 100 + Math.max(0, rows - 1) * 10 + 20; - const frame = penpot.createFrame(); + const frame = penpot.createBoard(); frame.name = 'Palette'; const viewport = penpot.viewport; @@ -67,7 +67,7 @@ function createPalette() { return; } - const board = penpot.createFrame(); + const board = penpot.createBoard(); grid.appendChild(board, row + 1, col + 1); board.fills = [color.asFill()]; board.strokes = [