From 587748910ff49504fa5f064a0850cd9e002f04bc Mon Sep 17 00:00:00 2001 From: vipinpaul Date: Wed, 1 Nov 2023 11:20:05 +0530 Subject: [PATCH 01/16] Fixing the audio resource loading issue --- renderer/src/components/Resources/ObsBibleAudioTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/src/components/Resources/ObsBibleAudioTab.js b/renderer/src/components/Resources/ObsBibleAudioTab.js index 9ff859ece..15e814eae 100644 --- a/renderer/src/components/Resources/ObsBibleAudioTab.js +++ b/renderer/src/components/Resources/ObsBibleAudioTab.js @@ -112,7 +112,7 @@ export default function ObsBibleAudioTab({ role="button" tabIndex="0" > - {ref.value.resourceMeta.subject} + {ref.value.resourceMeta?.subject} From c2955e43455c4efdc60b21a0c8cbde10d04ddce0 Mon Sep 17 00:00:00 2001 From: sijumoncy <72241997+sijumoncy@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:17:38 +0530 Subject: [PATCH 02/16] tech support UI added --- renderer/environment.js | 1 + .../basil/Solid/Communication/Envelope.svg | 10 +- .../icons/basil/Solid/Communication/Reply.svg | 6 +- .../icons/basil/Solid/Communication/Send.svg | 6 +- .../icons/basil/Solid/Status/Checked-box.svg | 6 +- renderer/src/layouts/editor/AboutModal.js | 103 +++++++++++++++++- 6 files changed, 122 insertions(+), 10 deletions(-) diff --git a/renderer/environment.js b/renderer/environment.js index 4586ead4a..30bdb97fe 100644 --- a/renderer/environment.js +++ b/renderer/environment.js @@ -15,4 +15,5 @@ export const environment = { AG_MINIMUM_BURRITO_VERSION: '0.3.0', OBS_IMAGE_DIR: 'obs-images', MERGE_DIR_NAME: '.merge-staging-area', + SCRIBE_SUPPORT_MAIL: 'scribe@bridgeconn.com', }; diff --git a/renderer/public/icons/basil/Solid/Communication/Envelope.svg b/renderer/public/icons/basil/Solid/Communication/Envelope.svg index 234a94796..e9ba26456 100644 --- a/renderer/public/icons/basil/Solid/Communication/Envelope.svg +++ b/renderer/public/icons/basil/Solid/Communication/Envelope.svg @@ -1,4 +1,8 @@ - - - + + + \ No newline at end of file diff --git a/renderer/public/icons/basil/Solid/Communication/Reply.svg b/renderer/public/icons/basil/Solid/Communication/Reply.svg index 5eaff00d4..5c5f2789d 100644 --- a/renderer/public/icons/basil/Solid/Communication/Reply.svg +++ b/renderer/public/icons/basil/Solid/Communication/Reply.svg @@ -1,3 +1,5 @@ - - + + \ No newline at end of file diff --git a/renderer/public/icons/basil/Solid/Communication/Send.svg b/renderer/public/icons/basil/Solid/Communication/Send.svg index f5bd215db..78b6cd7c7 100644 --- a/renderer/public/icons/basil/Solid/Communication/Send.svg +++ b/renderer/public/icons/basil/Solid/Communication/Send.svg @@ -1,3 +1,5 @@ - - + + \ No newline at end of file diff --git a/renderer/public/icons/basil/Solid/Status/Checked-box.svg b/renderer/public/icons/basil/Solid/Status/Checked-box.svg index 5d4c9a378..cecc8dc48 100644 --- a/renderer/public/icons/basil/Solid/Status/Checked-box.svg +++ b/renderer/public/icons/basil/Solid/Status/Checked-box.svg @@ -1,3 +1,5 @@ - - + + \ No newline at end of file diff --git a/renderer/src/layouts/editor/AboutModal.js b/renderer/src/layouts/editor/AboutModal.js index dcdc89468..2218a29fe 100644 --- a/renderer/src/layouts/editor/AboutModal.js +++ b/renderer/src/layouts/editor/AboutModal.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import { - Fragment, useRef, useState, + Fragment, useEffect, useRef, useState, } from 'react'; import { @@ -11,13 +11,21 @@ import { InformationCircleIcon, DocumentTextIcon, } from '@heroicons/react/24/outline'; + import { useTranslation } from 'react-i18next'; +import ChatIcon from '@/icons/Book/ChatBubbleLeftEllipsis.svg'; +import EnvelopeIcon from '@/icons/basil/Solid/Communication/Envelope.svg'; +import CheckedIcon from '@/icons/basil/Solid/Status/Checked-box.svg'; +import ReplyIcon from '@/icons/basil/Solid/Communication/Reply.svg'; + import LogoIcon from '@/icons/logo.svg'; +import { environment } from '../../../environment'; import packageInfo from '../../../../package.json'; export default function AboutModal(props) { const { openModal, open } = props; const [tabNumber, setTabNumber] = useState(0); + const [copy, setCopy] = useState(false); const cancelButtonRef = useRef(null); const { t } = useTranslation(); @@ -25,6 +33,31 @@ export default function AboutModal(props) { openModal(isOpen); } + const handleCopyMail = () => { + if (navigator) { + navigator.clipboard.writeText(environment.SCRIBE_SUPPORT_MAIL); + setCopy(true); + } + }; + + const handleWriteNow = () => { + if (window) { + window.location.href = `mailto:${environment.SCRIBE_SUPPORT_MAIL}`; + } + }; + + useEffect(() => { + if (copy) { + const timeout = setTimeout(() => { + setCopy(false); + }, 2000); + + return () => { + clearTimeout(timeout); + }; + } + }, [copy]); + return ( @@ -109,6 +142,20 @@ export default function AboutModal(props) { /> {t('modal-title-license')} +
setTabNumber(2)} + role="button" + tabIndex="0" + aria-label="tech-support" + className={`flex items-center justify-center p-2 leading-6 text-sm text-black hover:text-primary uppercase tracking-wide font-bold border-0 border-b-4 ${tabNumber === 2 ? 'border-primary' : 'border-transparent hover:border-black'}`} + > +
{tabNumber === 0 @@ -151,6 +198,60 @@ export default function AboutModal(props) { )} + {tabNumber === 2 + && ( + <> +

+ Your feedback is invaluable to us! Please share your thoughts, suggestions, or concerns to help us improve your experience. We have a dedicated team to ensure a smooth + experience with Scribe. +

+
+
+
+ +
Write Us
+

Write your thoughts, questions, or concerns with us. Your input matters

+
+
+ +
Sit Back and Relax
+

Our support team will review and take the necessary actions.

+
+
+ +
Done!
+

Success! Your concern has been resolved, and your path is now clear.

+
+
+
+
+
+ {environment.SCRIBE_SUPPORT_MAIL} +
+ + +
+
+
+

+ Thank you for your feedbacks and using Scribe. +

+ + )}

Developed by Bridge Connectivity Solutions From c3a3de2e232df2f0a6e77161f1e133119cf24972 Mon Sep 17 00:00:00 2001 From: sijumoncy <72241997+sijumoncy@users.noreply.github.com> Date: Thu, 2 Nov 2023 09:55:04 +0530 Subject: [PATCH 03/16] refactored the tech support area and content --- renderer/public/icons/Download/Github.svg | 14 ++++ renderer/src/layouts/editor/AboutModal.js | 82 +++++++++++++++-------- 2 files changed, 67 insertions(+), 29 deletions(-) create mode 100644 renderer/public/icons/Download/Github.svg diff --git a/renderer/public/icons/Download/Github.svg b/renderer/public/icons/Download/Github.svg new file mode 100644 index 000000000..4b9da007a --- /dev/null +++ b/renderer/public/icons/Download/Github.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/renderer/src/layouts/editor/AboutModal.js b/renderer/src/layouts/editor/AboutModal.js index 2218a29fe..a4d32f670 100644 --- a/renderer/src/layouts/editor/AboutModal.js +++ b/renderer/src/layouts/editor/AboutModal.js @@ -15,7 +15,7 @@ import { import { useTranslation } from 'react-i18next'; import ChatIcon from '@/icons/Book/ChatBubbleLeftEllipsis.svg'; import EnvelopeIcon from '@/icons/basil/Solid/Communication/Envelope.svg'; -import CheckedIcon from '@/icons/basil/Solid/Status/Checked-box.svg'; +import GithubIcon from '@/icons/Download/Github.svg'; import ReplyIcon from '@/icons/basil/Solid/Communication/Reply.svg'; import LogoIcon from '@/icons/logo.svg'; @@ -202,40 +202,57 @@ export default function AboutModal(props) { && ( <>

- Your feedback is invaluable to us! Please share your thoughts, suggestions, or concerns to help us improve your experience. We have a dedicated team to ensure a smooth - experience with Scribe. + Thank you for your input! We value it. Our devoted crew is working hard to provide a seamless Scribe experience.

-
-
-
- -
Write Us
-

Write your thoughts, questions, or concerns with us. Your input matters

-
-
- -
Sit Back and Relax
-

Our support team will review and take the necessary actions.

-
-
- -
Done!
-

Success! Your concern has been resolved, and your path is now clear.

+
+ {/*
*/} +
+
+
+ +
Raise an Issue
+
+
    +
  • Write the steps - how you faced the issue
  • +
  • Add relevant screenshots
  • +
  • Add specific suggestions - if you have any
  • +
-
-
-
- {environment.SCRIBE_SUPPORT_MAIL} -
+ +
+
+ +
+ +
+ +
+
+
+ {environment.SCRIBE_SUPPORT_MAIL} +
-

- Thank you for your feedbacks and using Scribe. -

+ )}
@@ -278,6 +293,15 @@ export default function AboutModal(props) { > {t('btn-source-code')} + + Documentation + {/* Date: Thu, 2 Nov 2023 11:37:57 +0530 Subject: [PATCH 04/16] layout change --- renderer/src/layouts/editor/AboutModal.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/renderer/src/layouts/editor/AboutModal.js b/renderer/src/layouts/editor/AboutModal.js index a4d32f670..4876c216e 100644 --- a/renderer/src/layouts/editor/AboutModal.js +++ b/renderer/src/layouts/editor/AboutModal.js @@ -201,13 +201,11 @@ export default function AboutModal(props) { {tabNumber === 2 && ( <> -

- Thank you for your input! We value it. Our devoted crew is working hard to provide a seamless Scribe experience. -

+
{/*
*/}
-
+
Raise an Issue
@@ -265,6 +263,12 @@ export default function AboutModal(props) {
+

+ Thank you for your input! + {' '} + We value it. Our devoted crew is working hard to provide a seamless Scribe experience. +

+ )}
From 47a0f19fb2dedc9ea78373fa01676e6681a2fa74 Mon Sep 17 00:00:00 2001 From: sijumoncy <72241997+sijumoncy@users.noreply.github.com> Date: Fri, 3 Nov 2023 17:02:50 +0530 Subject: [PATCH 05/16] added transaltions and changed contents --- renderer/src/layouts/editor/AboutModal.js | 38 ++++++++++++++++------- renderer/src/translations/en.js | 2 ++ renderer/src/translations/fa.js | 2 ++ renderer/src/translations/fr.js | 2 ++ renderer/src/translations/hi.js | 2 ++ renderer/src/translations/ne.js | 2 ++ renderer/src/translations/ru.js | 2 ++ 7 files changed, 38 insertions(+), 12 deletions(-) diff --git a/renderer/src/layouts/editor/AboutModal.js b/renderer/src/layouts/editor/AboutModal.js index 4876c216e..5bcb0a823 100644 --- a/renderer/src/layouts/editor/AboutModal.js +++ b/renderer/src/layouts/editor/AboutModal.js @@ -153,8 +153,7 @@ export default function AboutModal(props) { className="h-5 w-5 mr-2" aria-hidden="true" /> - {/* {t('modal-title-about')} */} - Tech Support + {t('label-tech-support')}
@@ -205,17 +204,32 @@ export default function AboutModal(props) {
{/*
*/}
-
-
- -
Raise an Issue
+
+
+
+ +
Ask your Queries
+
+
    +
  • Write the steps - how you faced the issue
  • +
  • Add relevant screenshots
  • +
  • Add specific suggestions - if you have any
  • +
+
+ +
+
    +
  • Feautre : Describe your idea
  • + How it will be beneficail for the users +
  • Feedback
  • +
+
+ +
Submit your suggessions
+
-
    -
  • Write the steps - how you faced the issue
  • -
  • Add relevant screenshots
  • -
  • Add specific suggestions - if you have any
  • -
+
@@ -304,7 +318,7 @@ export default function AboutModal(props) { className="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" rel="noreferrer" > - Documentation + {t('label-documentation')} {/* Date: Thu, 9 Nov 2023 14:12:57 +0530 Subject: [PATCH 06/16] fixed search functionality in listing page . --- renderer/src/components/Projects/ProjectList.js | 6 +++--- renderer/src/components/Projects/SearchTags.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/renderer/src/components/Projects/ProjectList.js b/renderer/src/components/Projects/ProjectList.js index 4c8f691e3..d25aad3af 100644 --- a/renderer/src/components/Projects/ProjectList.js +++ b/renderer/src/components/Projects/ProjectList.js @@ -30,7 +30,6 @@ export default function ProjectList() { callEditProject, }, action: { - setProjects, handleClickStarred, setCallEditProject, FetchProjects, @@ -38,6 +37,7 @@ export default function ProjectList() { } = useContext(AutographaContext); const [openPopUp, setOpenPopUp] = useState(false); const [currentProject, setCurrentProject] = useState(); + const [filteredProjects, setFilteredProjects] = useState(projects); const openExportPopUp = (project) => { setCurrentProject(project); setOpenPopUp(true); @@ -70,7 +70,7 @@ export default function ProjectList() { contentList1={projects} // contentList2={projects} filterList={filterList} - onfilerRequest1={setProjects} + onfilerRequest1={setFilteredProjects} // onfilerRequest2={setProjects} /> )} @@ -88,7 +88,7 @@ export default function ProjectList() { orderBy={orderBy} onRequestSort={handleRequestSort} /> - + {(!projects) &&
}
diff --git a/renderer/src/components/Projects/SearchTags.js b/renderer/src/components/Projects/SearchTags.js index b88cd8b69..47db316c5 100644 --- a/renderer/src/components/Projects/SearchTags.js +++ b/renderer/src/components/Projects/SearchTags.js @@ -47,7 +47,7 @@ export default function SearchTags({ // onfilerRequest2(contentList2); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [query]); + }, [query, contentList1]); return (
From 12ca053881a8435b2fd4939a659cc982917cabdc Mon Sep 17 00:00:00 2001 From: vipinpaul Date: Thu, 9 Nov 2023 14:50:25 +0530 Subject: [PATCH 07/16] Disable opening project from Archive --- renderer/src/components/Projects/ProjectRow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/src/components/Projects/ProjectRow.js b/renderer/src/components/Projects/ProjectRow.js index 262e366bc..2805970e1 100644 --- a/renderer/src/components/Projects/ProjectRow.js +++ b/renderer/src/components/Projects/ProjectRow.js @@ -85,7 +85,7 @@ const ProjectRow = ({
handleSelectProject(event, project.name, project.id[0], router, activeNotificationCount, setSelectedProject, setNotifications, setActiveNotificationCount) + (event) => (showArchived ? '' : handleSelectProject(event, project.name, project.id[0], router, activeNotificationCount, setSelectedProject, setNotifications, setActiveNotificationCount)) } role="button" aria-label={project.starred ? 'unstar-project-name' : 'star-project-name'} From b1070861a102111eea0e22aa168cf1bcbbb4efda Mon Sep 17 00:00:00 2001 From: sijumoncy <72241997+sijumoncy@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:14:11 +0530 Subject: [PATCH 08/16] fixed long description is breaking project listing ui --- renderer/src/components/Projects/ProjectRow.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/renderer/src/components/Projects/ProjectRow.js b/renderer/src/components/Projects/ProjectRow.js index 2805970e1..134866883 100644 --- a/renderer/src/components/Projects/ProjectRow.js +++ b/renderer/src/components/Projects/ProjectRow.js @@ -124,12 +124,20 @@ const ProjectRow = ({ leaveTo="transform scale-95 opacity-0" > - -
description
-
{project.description}
+ + +
{t('label-description')}
+
+ {project.description} + +
-
Project ID
+
{t('label-project-id')}
{project.id[0]}
From 36e08a89bd2fc12336fd1451120d76a98ed8629b Mon Sep 17 00:00:00 2001 From: sijumoncy <72241997+sijumoncy@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:20:17 +0530 Subject: [PATCH 09/16] fixed extra option to prev column --- renderer/src/components/Projects/ProjectRow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/src/components/Projects/ProjectRow.js b/renderer/src/components/Projects/ProjectRow.js index 134866883..12bef01d9 100644 --- a/renderer/src/components/Projects/ProjectRow.js +++ b/renderer/src/components/Projects/ProjectRow.js @@ -136,7 +136,7 @@ const ProjectRow = ({
- +
{t('label-project-id')}
{project.id[0]}
From a5cd3e6e8d338abe12fce0c928c49566163f273b Mon Sep 17 00:00:00 2001 From: sijumoncy <72241997+sijumoncy@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:01:02 +0530 Subject: [PATCH 10/16] scope validation added in proejct creation --- renderer/src/components/Projects/NewProject.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/renderer/src/components/Projects/NewProject.js b/renderer/src/components/Projects/NewProject.js index 137f8c78b..35bb28b9c 100644 --- a/renderer/src/components/Projects/NewProject.js +++ b/renderer/src/components/Projects/NewProject.js @@ -96,6 +96,7 @@ export default function NewProject({ call, project, closeEdit }) { newProjectFields, languages, language, + canonSpecification, }, actions: { setLanguage, @@ -203,6 +204,14 @@ export default function NewProject({ call, project, closeEdit }) { logger.warn('NewProject.js', 'Validation failed for Description.'); create = false; } + // custom scope section error + if (create && (!canonSpecification || !canonSpecification?.currentScope || canonSpecification?.currentScope?.length === 0)) { + create = false; + logger.warn('NewProject.js', 'Validation Failed - canon scope not selected'); + setNotify('warning'); + setSnackText(t('Scope is not selected or scope is empty. Please add scope.')); + setOpenSnackBar(true); + } setError({ ...error, projectName: checkName, abbr: checkAbbr, description: checkDesc, }); From f480f142e89e89ff16752d496bb3c4d4aac0b6df Mon Sep 17 00:00:00 2001 From: sijumoncy <72241997+sijumoncy@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:26:44 +0530 Subject: [PATCH 11/16] fix for project listing page complete page scroll. --- renderer/src/layouts/projects/Layout.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/renderer/src/layouts/projects/Layout.js b/renderer/src/layouts/projects/Layout.js index 7c4b023f5..c27a93d59 100644 --- a/renderer/src/layouts/projects/Layout.js +++ b/renderer/src/layouts/projects/Layout.js @@ -46,7 +46,7 @@ export default function ProjectsLayout(props) { } return ( -
+
@@ -133,7 +133,9 @@ export default function ProjectsLayout(props) { )} - {children} +
+ {children} +
From e923848690076d6b95ef006041ba89ca68c34c58 Mon Sep 17 00:00:00 2001 From: sijumoncy <72241997+sijumoncy@users.noreply.github.com> Date: Fri, 10 Nov 2023 13:34:25 +0530 Subject: [PATCH 12/16] added deselection of the previous scope . and removed unwanted cheks from save meta --- .../Navigation/reference/SelectBook.js | 3 +++ .../CreateProject/AdvancedSettingsDropdown.js | 2 +- .../CreateProject/CustomCanonSpecification.js | 8 ++++++- .../src/core/projects/saveProjetcsMeta.js | 21 ++++++++++--------- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/renderer/src/components/EditorPage/Navigation/reference/SelectBook.js b/renderer/src/components/EditorPage/Navigation/reference/SelectBook.js index 9f993a269..9f4395a70 100644 --- a/renderer/src/components/EditorPage/Navigation/reference/SelectBook.js +++ b/renderer/src/components/EditorPage/Navigation/reference/SelectBook.js @@ -13,6 +13,7 @@ export default function SelectBook({ selectedBooks, setSelectedBooks, scope, + existingScope = [], }) { const [openNT, setOpenNT] = useState(true); const [openOT, setOpenOT] = useState(true); @@ -46,7 +47,9 @@ export default function SelectBook({ } else { const _selectedBooks = [...selectedBooks]; const selectedIndex = _selectedBooks.indexOf(bookID.toUpperCase()); + if (!(scope === 'Other' && existingScope?.length > 0 && existingScope.includes(bookID.toUpperCase()))) { _selectedBooks.splice(selectedIndex, 1); + } setSelectedBooks(_selectedBooks); } } diff --git a/renderer/src/components/ProjectsPage/CreateProject/AdvancedSettingsDropdown.js b/renderer/src/components/ProjectsPage/CreateProject/AdvancedSettingsDropdown.js index 42dec8b77..2990eb146 100644 --- a/renderer/src/components/ProjectsPage/CreateProject/AdvancedSettingsDropdown.js +++ b/renderer/src/components/ProjectsPage/CreateProject/AdvancedSettingsDropdown.js @@ -87,7 +87,6 @@ export default function AdvancedSettingsDropdown({ call, project, projectType }) setCurrentScope({ title: t('label-other'), currentScope: vals }); } }; - // console.log('canon spec : ', { canonSpecification }); // selectNew variable is used to track whether its a new selection or loading from the list const setALicense = (licenceTitle, selectNew) => { if (isElectron()) { @@ -375,6 +374,7 @@ export default function AdvancedSettingsDropdown({ call, project, projectType }) bibleNav={bibleNav} closeBibleNav={() => closeBooks()} handleNav={handleNav} + project={project} /> )} diff --git a/renderer/src/components/ProjectsPage/CreateProject/CustomCanonSpecification.js b/renderer/src/components/ProjectsPage/CreateProject/CustomCanonSpecification.js index 1ad017662..076c5ef56 100644 --- a/renderer/src/components/ProjectsPage/CreateProject/CustomCanonSpecification.js +++ b/renderer/src/components/ProjectsPage/CreateProject/CustomCanonSpecification.js @@ -8,7 +8,9 @@ import SelectBook from '@/components/EditorPage/Navigation/reference/SelectBook' import { ProjectContext } from '../../context/ProjectContext'; import * as logger from '../../../logger'; -const CustomCanonSpecification = ({ bibleNav, closeBibleNav, handleNav }) => { +const CustomCanonSpecification = ({ + bibleNav, closeBibleNav, handleNav, project, +}) => { const initialBook = 'mat'; const initialChapter = '1'; const initialVerse = '1'; @@ -18,6 +20,7 @@ const CustomCanonSpecification = ({ bibleNav, closeBibleNav, handleNav }) => { states: { canonSpecification, canonList }, actions: { setcanonSpecification }, } = React.useContext(ProjectContext); + const [selectedBooks, setSelectedBooks] = React.useState([]); const [lock, setLock] = React.useState(); const { @@ -36,6 +39,7 @@ const CustomCanonSpecification = ({ bibleNav, closeBibleNav, handleNav }) => { }); closeBibleNav(); }; + React.useEffect(() => { if (handleNav === 'edit') { setLock(canonSpecification.locked); @@ -44,6 +48,7 @@ const CustomCanonSpecification = ({ bibleNav, closeBibleNav, handleNav }) => { } // eslint-disable-next-line react-hooks/exhaustive-deps }, [handleNav]); + return ( { selectedBooks={selectedBooks} setSelectedBooks={setSelectedBooks} scope={name} + existingScope={Object.keys(project?.type?.flavorType?.currentScope)} >