Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Remove delete button for required prop
Ivan Starkov84c0e4b145e5
diff --git a/apps/designer/app/designer/features/props-panel/props-panel.tsx b/apps/designer/app/designer/features/props-panel/props-panel.tsxindex 743ed54857..1aa0839712 100644--- a/apps/designer/app/designer/features/props-panel/props-panel.tsx+++ b/apps/designer/app/designer/features/props-panel/props-panel.tsx@@ -203,15 +203,18 @@ const Property = ({currentStyle={currentStyle}/>)}- <Button- disabled={required}- ghost- onClick={() => {- onDelete(userProp.id);- }}- >- <TrashIcon />- </Button>+ {required ? (+ <Box />+ ) : (+ <Button+ ghost+ onClick={() => {+ onDelete(userProp.id);+ }}+ >+ <TrashIcon />+ </Button>+ )}</>);};