Added documentation for react components under /common and fix for some leftover element id's on commonly used components that I missed.

This commit is contained in:
TukanDev
2022-07-05 20:23:20 +02:00
parent 8f6ae91a8a
commit 2af33ccc33
5 changed files with 47 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ export default class Checkbox extends React.Component<IProps, IState> {
return (
<div className="Checkbox">
<input type='checkbox' id={this.props.id} checked={this.state.checked} onChange={this.handleChange} />
<label id="commonCheckboxLabel" htmlFor={this.props.id}>
<label htmlFor={this.props.id}>
<div className="CheckboxDisplay">
{this.state.checked ? <img src={checkmark} alt='Checkmark' /> : null}
</div>