Просмотр исходного кода

success to show two exported components

kaori 5 лет назад
Родитель
Сommit
797c11a257

+ 4 - 4
src/client/js/components/ContentLinkButtons.jsx

@@ -16,7 +16,7 @@ const WIKI_HEADER_LINK = 120;
  * @author Yuki Takei <yuki@weseek.co.jp>
  *
  */
-const ContentLinkButtons = (props) => {
+const BookMarkAndRecentlyCreatedLinkButtons = (props) => {
 
   const { navigationContainer } = props;
 
@@ -48,12 +48,12 @@ const ContentLinkButtons = (props) => {
 
 };
 
-ContentLinkButtons.propTypes = {
+BookMarkAndRecentlyCreatedLinkButtons.propTypes = {
   navigationContainer: PropTypes.instanceOf(NavigationContainer).isRequired,
 };
 
-const ContentLinkButtonsWrapper = withUnstatedContainers(ContentLinkButtons, [NavigationContainer]);
-export { ContentLinkButtonsWrapper };
+const BookMarkAndRecentlyCreatedLinkButtonsWrapper = withUnstatedContainers(BookMarkAndRecentlyCreatedLinkButtons, [NavigationContainer]);
+export { BookMarkAndRecentlyCreatedLinkButtonsWrapper };
 
 
 const CommentLinkButton = (props) => {

+ 2 - 2
src/client/js/components/Page/DisplaySwitcher.jsx

@@ -10,7 +10,7 @@ import UserInfo from '../User/UserInfo';
 import TableOfContents from '../TableOfContents';
 import {
   CommentLinkButtonWrapper as CommentLinkButton,
-  ContentLinkButtonsWrapper as ContentLinkButtons,
+  BookMarkAndRecentlyCreatedLinkButtonsWrapper as BookMarkAndRecentlyCreatedLinkButtons,
 } from '../ContentLinkButtons';
 import PageAccessories from '../PageAccessories';
 import PageEditorByHackmd from '../PageEditorByHackmd';
@@ -42,7 +42,7 @@ const DisplaySwitcher = (props) => {
                     <TableOfContents />
                   </div>
                   {isPageExist && <CommentLinkButton />}
-                  {pageUser && <ContentLinkButtons />}
+                  {pageUser && <BookMarkAndRecentlyCreatedLinkButtons />}
                 </div>
               </div>
             </div>