|
@@ -26,7 +26,7 @@ const ThreeStrandedButton = (props) => {
|
|
|
>
|
|
>
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|
|
|
- className={`btn btn-outline-primary view-button ${editorMode === 'view' && 'active'} ${isBtnDisabled && 'disabled'}`}
|
|
|
|
|
|
|
+ className={`btn btn-outline-primary view-button ${editorMode === 'view' ? 'active' : ''} ${isBtnDisabled ? 'disabled' : ''}`}
|
|
|
onClick={() => { threeStrandedButtonClickedHandler('view') }}
|
|
onClick={() => { threeStrandedButtonClickedHandler('view') }}
|
|
|
>
|
|
>
|
|
|
<i className="icon-control-play icon-fw grw-three-stranded-button-icon" />
|
|
<i className="icon-control-play icon-fw grw-three-stranded-button-icon" />
|
|
@@ -34,7 +34,7 @@ const ThreeStrandedButton = (props) => {
|
|
|
</button>
|
|
</button>
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|
|
|
- className={`btn btn-outline-primary edit-button ${editorMode === 'edit' && 'active'} ${isBtnDisabled && 'disabled'}`}
|
|
|
|
|
|
|
+ className={`btn btn-outline-primary edit-button ${editorMode === 'edit' ? 'active' : ''} ${isBtnDisabled ? 'disabled' : ''}`}
|
|
|
onClick={() => { threeStrandedButtonClickedHandler('edit') }}
|
|
onClick={() => { threeStrandedButtonClickedHandler('edit') }}
|
|
|
>
|
|
>
|
|
|
<i className="icon-note icon-fw grw-three-stranded-button-icon" />
|
|
<i className="icon-note icon-fw grw-three-stranded-button-icon" />
|
|
@@ -42,7 +42,7 @@ const ThreeStrandedButton = (props) => {
|
|
|
</button>
|
|
</button>
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|
|
|
- className={`btn btn-outline-primary hackmd-button ${editorMode === 'hackmd' && 'active'} ${isBtnDisabled && 'disabled'}`}
|
|
|
|
|
|
|
+ className={`btn btn-outline-primary hackmd-button ${editorMode === 'hackmd' ? 'active' : ''} ${isBtnDisabled ? 'disabled' : ''}`}
|
|
|
onClick={() => { threeStrandedButtonClickedHandler('hackmd') }}
|
|
onClick={() => { threeStrandedButtonClickedHandler('hackmd') }}
|
|
|
>
|
|
>
|
|
|
<i className="fa fa-fw fa-file-text-o grw-three-stranded-button-icon" />
|
|
<i className="fa fa-fw fa-file-text-o grw-three-stranded-button-icon" />
|