From 0d0d722dd7c5d74f262bc6bc987e48022d935bfb Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Sat, 8 Aug 2026 18:38:38 -0700 Subject: [PATCH] refactor(site-builder): extract HtmlCodeField out of GenericPropsEditor Co-Authored-By: Claude Opus 5 (1M context) --- .../right/styles/GenericPropsEditor.tsx | 76 +------------------ .../src/panels/right/styles/HtmlCodeField.tsx | 74 ++++++++++++++++++ 2 files changed, 76 insertions(+), 74 deletions(-) create mode 100644 craft/src/panels/right/styles/HtmlCodeField.tsx diff --git a/craft/src/panels/right/styles/GenericPropsEditor.tsx b/craft/src/panels/right/styles/GenericPropsEditor.tsx index ed0233b..c8525fa 100644 --- a/craft/src/panels/right/styles/GenericPropsEditor.tsx +++ b/craft/src/panels/right/styles/GenericPropsEditor.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React from 'react'; import { TEXT_COLORS, BG_COLORS, @@ -17,79 +17,7 @@ import { useNodeProp, } from './shared'; import { ArrayItemFieldsEditor } from './ArrayItemFields'; -import { Modal } from '../../../ui/Modal'; -import { CodeEditor } from '../../../ui/CodeEditor'; - -/* ---------- "Edit HTML" modal for the HtmlBlock `code` prop ---------- - `code` is raw HTML (potentially many lines, embedded