client/hippo/components/text-editor/display-modes/Button.jsx in hippo-fw-0.9.7 vs client/hippo/components/text-editor/display-modes/Button.jsx in hippo-fw-0.9.8
- old
+ new
@@ -1,9 +1,12 @@
import React from 'react'; // eslint-disable-line no-unused-vars
import Button from 'grommet/components/Button';
+import cn from 'classnames';
-const DisplayModeButton = ({ label, icon, onClick, active, disabled }) => (
- <span className={active ? 'active' : ''}>
+const DisplayModeButton = ({
+ className, label, icon, onClick, active, disabled,
+}) => (
+ <span className={cn(className, { active })}>
<Button
plain
secondary={active}
onClick={onClick}
label={label}