Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu committed Jun 18, 2019
1 parent 3a1fb56 commit afab30a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Header extends React.Component {
}
handleDrawerToggle = () => {
this.setState({ mobileOpen: !this.state.mobileOpen });
}
};
headerColorChange = () => {
const { classes, color, changeColorOnScroll } = this.props;
const windowsScrollTop = window.pageYOffset;
Expand All @@ -44,7 +44,7 @@ class Header extends React.Component {
.getElementsByTagName("header")[0]
.classList.remove(classes[changeColorOnScroll.color]);
}
}
};
componentDidMount() {
if (this.props.changeColorOnScroll) {
window.addEventListener("scroll", this.headerColorChange);
Expand Down
29 changes: 19 additions & 10 deletions src/views/Components/Sections/SectionBasics.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,13 @@ class SectionBasics extends React.Component {
onClick={() => this.handleToggle(21)}
checkedIcon={<Check className={classes.checkedIcon} />}
icon={<Check className={classes.uncheckedIcon} />}
classes={{ checked: classes.checked, root: classes.checkRoot }}
classes={{
checked: classes.checked,
root: classes.checkRoot
}}
/>
}
classes={{ label: classes.label,
root: classes.labelRoot }}
classes={{ label: classes.label, root: classes.labelRoot }}
label="Unchecked"
/>
</div>
Expand All @@ -262,11 +264,13 @@ class SectionBasics extends React.Component {
}
checkedIcon={<Check className={classes.checkedIcon} />}
icon={<Check className={classes.uncheckedIcon} />}
classes={{ checked: classes.checked, root: classes.checkRoot }}
classes={{
checked: classes.checked,
root: classes.checkRoot
}}
/>
}
classes={{ label: classes.label,
root: classes.labelRoot }}
classes={{ label: classes.label, root: classes.labelRoot }}
label="Checked"
/>
</div>
Expand All @@ -284,7 +288,10 @@ class SectionBasics extends React.Component {
tabIndex={-1}
checkedIcon={<Check className={classes.checkedIcon} />}
icon={<Check className={classes.uncheckedIcon} />}
classes={{ checked: classes.checked, root: classes.checkRoot }}
classes={{
checked: classes.checked,
root: classes.checkRoot
}}
/>
}
classes={{
Expand Down Expand Up @@ -312,7 +319,10 @@ class SectionBasics extends React.Component {
}
checkedIcon={<Check className={classes.checkedIcon} />}
icon={<Check className={classes.uncheckedIcon} />}
classes={{ checked: classes.checked, root: classes.checkRoot }}
classes={{
checked: classes.checked,
root: classes.checkRoot
}}
/>
}
classes={{
Expand Down Expand Up @@ -467,8 +477,7 @@ class SectionBasics extends React.Component {
}}
/>
}
classes={{ label: classes.label,
root: classes.labelRoot }}
classes={{ label: classes.label, root: classes.labelRoot }}
label="Disabled Checked Radio"
/>
</div>
Expand Down

0 comments on commit afab30a

Please sign in to comment.