فهرست منبع

create WatchButton component

Shun Miyazawa 4 سال پیش
والد
کامیت
d0363ee0c1
2فایلهای تغییر یافته به همراه19 افزوده شده و 0 حذف شده
  1. 4 0
      packages/app/src/components/Navbar/SubNavButtons.jsx
  2. 15 0
      packages/app/src/components/WatchButton.jsx

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

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