Browse Source

create WatchButton component

Shun Miyazawa 4 years ago
parent
commit
d0363ee0c1

+ 4 - 0
packages/app/src/components/Navbar/SubNavButtons.jsx

@@ -7,6 +7,7 @@ import { withUnstatedContainers } from '../UnstatedUtils';
 
 
 import BookmarkButton from '../BookmarkButton';
 import BookmarkButton from '../BookmarkButton';
 import LikeButton from '../LikeButton';
 import LikeButton from '../LikeButton';
+import WatchButton from '../WatchButton';
 import PageManagement from '../Page/PageManagement';
 import PageManagement from '../Page/PageManagement';
 
 
 const SubnavButtons = (props) => {
 const SubnavButtons = (props) => {
@@ -21,6 +22,9 @@ const SubnavButtons = (props) => {
 
 
     return (
     return (
       <>
       <>
+        <span>
+          <WatchButton />
+        </span>
         {pageContainer.isAbleToShowLikeButton && (
         {pageContainer.isAbleToShowLikeButton && (
           <span>
           <span>
             <LikeButton />
             <LikeButton />

+ 15 - 0
packages/app/src/components/WatchButton.jsx

@@ -0,0 +1,15 @@
+import React from 'react';
+import { withTranslation } from 'react-i18next';
+
+const WatchButton = () => {
+
+  return (
+    <>
+      <p>Hello Watch Button</p>
+    </>
+  );
+
+};
+
+
+export default withTranslation()(WatchButton);