| |
@@ -87,11 +87,13 @@
|
| |
this.state.config_mode ? this.available_components : this.state.enabled_components
|
| |
)
|
| |
components = components.map((row) => (
|
| |
- <>
|
| |
+ <React.Fragment key={row}>
|
| |
{row.map((item) => (
|
| |
- <div className="padded col-md-6">{available_components[item]}</div>
|
| |
+ <div className="padded col-md-6" key={item}>
|
| |
+ {available_components[item]}
|
| |
+ </div>
|
| |
))}
|
| |
- </>
|
| |
+ </React.Fragment>
|
| |
))
|
| |
|
| |
return (
|
| |
@@ -111,7 +113,7 @@
|
| |
{components}
|
| |
<div className="padded col-md-12 text-right col-md-offset-2">
|
| |
<Button className="mt" color="primary" onClick={this.toggleModal}>
|
| |
- <i class="fas fa-cog"></i>
|
| |
+ <i className="fas fa-cog"></i>
|
| |
</Button>
|
| |
<Modal isOpen={this.state.showModal} toggle={this.toggleModal}>
|
| |
<ModalHeader>Visibility Configuration</ModalHeader>
|
| |
@@ -119,15 +121,15 @@
|
| |
{this.available_components.map((item) => (
|
| |
<React.Fragment key={item}>
|
| |
<Col sm="12">
|
| |
- <div class="custom-control custom-switch">
|
| |
+ <div className="custom-control custom-switch">
|
| |
<input
|
| |
type="checkbox"
|
| |
- class="custom-control-input"
|
| |
+ className="custom-control-input"
|
| |
id={item}
|
| |
checked={this.state.enabled_components.includes(item)}
|
| |
onChange={(e) => this.handleVisibilityChange(e, item)}
|
| |
/>{" "}
|
| |
- <label class="custom-control-label" for={item}>
|
| |
+ <label className="custom-control-label" htmlFor={item}>
|
| |
{item === "events"
|
| |
? "Meetings and testdays in the next 7 days"
|
| |
: item === "minutes"
|
| |
@@ -158,7 +160,7 @@
|
| |
className="btn btn-primary btn-block btn-wrap-text btn-lg active"
|
| |
to="/wizard"
|
| |
role="button">
|
| |
- Explore <i class="fas fa-search"></i>
|
| |
+ Explore <i className="fas fa-search"></i>
|
| |
</Link>
|
| |
</div>
|
| |
</Row>
|
| |
@lbrabec removed warnings, please have a look.