Skip to content

Commit

Permalink
Merge pull request #758 from friendsofagape/version2.3.0
Browse files Browse the repository at this point in the history
version update and lint fix
  • Loading branch information
vipinpaul authored Jan 19, 2023
2 parents 97492c4 + 876ae02 commit d57c2c7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A Bible translation editor for everyone.",
"email": "[email protected]",
"author": "Friends of Agape <[email protected]>",
"version": "2.2.4",
"version": "2.3.0",
"license": "MIT",
"private": true,
"main": "main/index.js",
Expand Down
36 changes: 20 additions & 16 deletions renderer/src/components/EditorPage/Scribex/Buttons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Bars2Icon,
Bars4Icon,
ArrowUturnLeftIcon,
ArrowUturnRightIcon
ArrowUturnRightIcon,

} from '@heroicons/react/24/outline';

Expand Down Expand Up @@ -59,7 +59,7 @@ export default function Buttons(props) {
)}
aria-hidden="true"
onClick={onSectionable}
title={sectionable ? "Expand all Chapters" : "Collapse Chapters"}
title={sectionable ? 'Expand all Chapters' : 'Collapse Chapters'}
/>

<PencilIcon
Expand All @@ -70,29 +70,33 @@ export default function Buttons(props) {
)}
aria-hidden="true"
onClick={onEditable}
title={editable ? "Disable Edit" : "Enable Edit"}
title={editable ? 'Disable Edit' : 'Enable Edit'}
/>
{blockable ? <Bars2Icon
aria-label="Article-Icon"
className='h-5 mr-2 w-5 text-white cursor-pointer'
aria-hidden="true"
onClick={onBlockable}
title="Collapse blocks"
/> :
<Bars4Icon
aria-label="List-Icon"
className='h-5 mr-2 w-5 text-white cursor-pointer'
{blockable ? (
<Bars2Icon
aria-label="Article-Icon"
className="h-5 mr-2 w-5 text-white cursor-pointer"
aria-hidden="true"
onClick={onBlockable}
title="Split into blocks"
/>}
title="Collapse blocks"
/>
)
: (
<Bars4Icon
aria-label="List-Icon"
className="h-5 mr-2 w-5 text-white cursor-pointer"
aria-hidden="true"
onClick={onBlockable}
title="Split into blocks"
/>
)}

<ArrowUturnLeftIcon
aria-label="Undo-Icon"
className="h-5 mr-2 w-5 text-white cursor-pointer"
aria-hidden="true"
onClick={() => undo()}
title={"Undo"}
title="Undo"
/>
<ArrowUturnRightIcon
aria-label="Redo-Icon"
Expand Down

0 comments on commit d57c2c7

Please sign in to comment.