Browse Source

using eventHandler when buttons are clicked

kaoritokashiki 5 years ago
parent
commit
dc525cf7bd
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/client/js/components/Navbar/ThreeStrandedButton.jsx

+ 3 - 3
src/client/js/components/Navbar/ThreeStrandedButton.jsx

@@ -14,15 +14,15 @@ const ThreeStrandedButton = (props) => {
 
   return (
     <div className="btn-group grw-three-stranded-button" role="group " aria-label="three-stranded-button">
-      <button type="button" className="btn btn-outline-primary view-button">
+      <button type="button" className="btn btn-outline-primary view-button" onClick={() => { threeStrandedButtonClickedHandler() }}>
         <i className="icon-control-play icon-fw" />
         { t('view') }
       </button>
-      <button type="button" className="btn btn-outline-primary edit-button">
+      <button type="button" className="btn btn-outline-primary edit-button" onClick={() => { threeStrandedButtonClickedHandler() }}>
         <i className="icon-note icon-fw" />
         { t('Edit') }
       </button>
-      <button type="button" className="btn btn-outline-primary hackmd-button">
+      <button type="button" className="btn btn-outline-primary hackmd-button" onClick={() => { threeStrandedButtonClickedHandler() }}>
         <i className="fa fa-fw fa-file-text-o" />
         { t('hackmd.hack_md') }
       </button>