|
|
@@ -16,7 +16,6 @@ const Fab = (props) => {
|
|
|
const { navigationContainer, appContainer } = props;
|
|
|
const { currentUser } = appContainer;
|
|
|
|
|
|
-
|
|
|
const [animateClasses, setAnimateClasses] = useState('invisible');
|
|
|
|
|
|
|
|
|
@@ -42,7 +41,7 @@ const Fab = (props) => {
|
|
|
};
|
|
|
}, [stickyChangeHandler]);
|
|
|
|
|
|
- function renderEditorButton() {
|
|
|
+ function renderPageCreateButton() {
|
|
|
return (
|
|
|
<>
|
|
|
<div className={`rounded-circle position-absolute ${animateClasses}`} style={{ bottom: '2.3rem', right: '4rem' }}>
|
|
|
@@ -60,7 +59,7 @@ const Fab = (props) => {
|
|
|
|
|
|
return (
|
|
|
<div className="grw-fab d-none d-md-block">
|
|
|
- {currentUser != null && renderEditorButton()}
|
|
|
+ {currentUser != null && renderPageCreateButton()}
|
|
|
<div className={`rounded-circle position-absolute ${animateClasses}`} style={{ bottom: 0, right: 0 }}>
|
|
|
<button type="button" className="btn btn-light btn-scroll-to-top rounded-circle p-0" onClick={() => navigationContainer.smoothScrollIntoView()}>
|
|
|
<ReturnTopIcon />
|