|
|
@@ -7,9 +7,13 @@ import { withUnstatedContainers } from './UnstatedUtils';
|
|
|
const FixedControls = (props) => {
|
|
|
const { navigationContainer } = props;
|
|
|
|
|
|
+ const { showFav } = navigationContainer.state;
|
|
|
+
|
|
|
+ const showClasses = showFav ? ['animated fadeInUp faster'] : ['invisible'];
|
|
|
+
|
|
|
return (
|
|
|
- <div className="grw-fixed-controls-container d-none d-md-block animated fadeInUp faster">
|
|
|
- <div className="rounded-circle position-absolute" style={{ bottom: '2.3rem', right: '3rem' }}>
|
|
|
+ <div className="grw-fixed-controls d-none d-md-block">
|
|
|
+ <div className={`rounded-circle position-absolute ${showClasses.join(' ')}`} style={{ bottom: '2.3rem', right: '3rem' }}>
|
|
|
<button
|
|
|
type="button"
|
|
|
className="btn btn-lg btn-create-page btn-primary rounded-circle waves-effect waves-light"
|
|
|
@@ -18,7 +22,7 @@ const FixedControls = (props) => {
|
|
|
<i className="icon-pencil"></i>
|
|
|
</button>
|
|
|
</div>
|
|
|
- <div className="rounded-circle position-absolute" style={{ bottom: 0, right: 0 }}>
|
|
|
+ <div className={`rounded-circle position-absolute ${showClasses.join(' ')}`} style={{ bottom: 0, right: 0 }}>
|
|
|
<button type="button" className="btn btn-light btn-scroll-to-top rounded-circle" onClick={() => navigationContainer.smoothScrollIntoView()}>
|
|
|
<i className="icon-control-start"></i>
|
|
|
</button>
|