فهرست منبع

rename a function to easy understand

kaoritokashiki 5 سال پیش
والد
کامیت
b604abdf73
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      src/client/js/components/Fab.jsx

+ 2 - 3
src/client/js/components/Fab.jsx

@@ -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 />