mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-01 09:50:35 +00:00
remove unneeded divs
This commit is contained in:
parent
a4e4fdbd44
commit
797ccbad5f
@ -54,46 +54,36 @@ export default function ArrayFieldItemTemplate<
|
|||||||
{children}
|
{children}
|
||||||
</Column>
|
</Column>
|
||||||
{hasToolbar && (
|
{hasToolbar && (
|
||||||
<Column
|
<Column sm={1} md={1} lg={1}>
|
||||||
sm={1}
|
|
||||||
md={1}
|
|
||||||
lg={1}
|
|
||||||
>
|
|
||||||
<div className="array-item-toolbox">
|
<div className="array-item-toolbox">
|
||||||
<div className="NOT-btn-group">
|
<div className="NOT-btn-group">
|
||||||
<div>
|
{(hasMoveUp || hasMoveDown) && (
|
||||||
{(hasMoveUp || hasMoveDown) && (
|
<MoveUpButton
|
||||||
<MoveUpButton
|
style={btnStyle}
|
||||||
style={btnStyle}
|
disabled={disabled || readonly || !hasMoveUp}
|
||||||
disabled={disabled || readonly || !hasMoveUp}
|
onClick={onReorderClick(index, index - 1)}
|
||||||
onClick={onReorderClick(index, index - 1)}
|
uiSchema={uiSchema}
|
||||||
uiSchema={uiSchema}
|
registry={registry}
|
||||||
registry={registry}
|
/>
|
||||||
/>
|
)}
|
||||||
)}
|
{(hasMoveUp || hasMoveDown) && (
|
||||||
</div>
|
<MoveDownButton
|
||||||
<div>
|
style={btnStyle}
|
||||||
{(hasMoveUp || hasMoveDown) && (
|
disabled={disabled || readonly || !hasMoveDown}
|
||||||
<MoveDownButton
|
onClick={onReorderClick(index, index + 1)}
|
||||||
style={btnStyle}
|
uiSchema={uiSchema}
|
||||||
disabled={disabled || readonly || !hasMoveDown}
|
registry={registry}
|
||||||
onClick={onReorderClick(index, index + 1)}
|
/>
|
||||||
uiSchema={uiSchema}
|
)}
|
||||||
registry={registry}
|
{hasRemove && (
|
||||||
/>
|
<RemoveButton
|
||||||
)}
|
style={btnStyle}
|
||||||
</div>
|
disabled={disabled || readonly}
|
||||||
<div>
|
onClick={onDropIndexClick(index)}
|
||||||
{hasRemove && (
|
uiSchema={uiSchema}
|
||||||
<RemoveButton
|
registry={registry}
|
||||||
style={btnStyle}
|
/>
|
||||||
disabled={disabled || readonly}
|
)}
|
||||||
onClick={onDropIndexClick(index)}
|
|
||||||
uiSchema={uiSchema}
|
|
||||||
registry={registry}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Column>
|
</Column>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user