Commit fd52e458 authored by Giannis Kopanas's avatar Giannis Kopanas Committed by Alexandros Georgantas

fix(dynamiccomponenttypes): add data-test-id for tests

parent 5562b9a0
......@@ -38,6 +38,6 @@ const AddComponentButton = ({ add, label, type }) => {
</g>
</svg>
)
return <StyledButton onClick={addComponent} label={label} icon={icon} />
return <StyledButton icon={icon} label={label} onClick={addComponent} />
}
export default AddComponentButton
......@@ -280,8 +280,8 @@ const Footer = (handleSave, divisions, divisionType) => () => {
<>
<Input
autoFocus
defaultValue={text}
id="addComponentType"
defaultValue={text}
name="addComponentType"
onChange={event => setText(event.target.value)}
/>
......
......@@ -264,13 +264,13 @@ class Division extends React.Component {
componentType.predefined ? (
<AddComponentButton
add={this.onAddClick}
divisionName={componentConfig.name}
label={`add ${componentType.title}`}
type={componentType.value}
/>
) : null,
)
}
// const list = (
// <ul className={styles.sectionChapters}> {bookComponentInstances} </ul>
// )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment