mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Remove double border in DZ
This commit is contained in:
parent
8245603a5d
commit
b000d7ced9
@ -64,41 +64,40 @@ const Component = ({
|
||||
return (
|
||||
<Box>
|
||||
<Rectangle />
|
||||
<Box hasRadius borderColor="neutral150" shadow="tableShadow">
|
||||
<Accordion expanded={isOpen} toggle={() => onToggle(index)}>
|
||||
<AccordionToggle
|
||||
action={
|
||||
<Stack horizontal size={2}>
|
||||
{showDownIcon && (
|
||||
<IconButton
|
||||
label={downLabel}
|
||||
onClick={handleMoveComponentDown}
|
||||
icon={<DownIcon />}
|
||||
/>
|
||||
)}
|
||||
{showUpIcon && (
|
||||
<IconButton label={upLabel} onClick={handleMoveComponentUp} icon={<UpIcon />} />
|
||||
)}
|
||||
{isFieldAllowed && (
|
||||
<IconButton label={deleteLabel} onClick={handleRemove} icon={<DeleteIcon />} />
|
||||
)}
|
||||
</Stack>
|
||||
}
|
||||
title={friendlyName}
|
||||
togglePosition="left"
|
||||
/>
|
||||
<AccordionContent>
|
||||
<FocusTrap onEscape={() => onToggle(index)}>
|
||||
<FieldComponent
|
||||
componentUid={componentUid}
|
||||
icon={icon}
|
||||
name={`${name}.${index}`}
|
||||
isFromDynamicZone
|
||||
/>
|
||||
</FocusTrap>
|
||||
</AccordionContent>
|
||||
</Accordion>
|
||||
</Box>
|
||||
|
||||
<Accordion expanded={isOpen} toggle={() => onToggle(index)}>
|
||||
<AccordionToggle
|
||||
action={
|
||||
<Stack horizontal size={2}>
|
||||
{showDownIcon && (
|
||||
<IconButton
|
||||
label={downLabel}
|
||||
onClick={handleMoveComponentDown}
|
||||
icon={<DownIcon />}
|
||||
/>
|
||||
)}
|
||||
{showUpIcon && (
|
||||
<IconButton label={upLabel} onClick={handleMoveComponentUp} icon={<UpIcon />} />
|
||||
)}
|
||||
{isFieldAllowed && (
|
||||
<IconButton label={deleteLabel} onClick={handleRemove} icon={<DeleteIcon />} />
|
||||
)}
|
||||
</Stack>
|
||||
}
|
||||
title={friendlyName}
|
||||
togglePosition="left"
|
||||
/>
|
||||
<AccordionContent>
|
||||
<FocusTrap onEscape={() => onToggle(index)}>
|
||||
<FieldComponent
|
||||
componentUid={componentUid}
|
||||
icon={icon}
|
||||
name={`${name}.${index}`}
|
||||
isFromDynamicZone
|
||||
/>
|
||||
</FocusTrap>
|
||||
</AccordionContent>
|
||||
</Accordion>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user