Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/renderer/src/business/voice/VoiceStatement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const VoiceStatement = ({
<BigDialog
title={t.personalizeTitle}
isOpen={Boolean(showPersonalize)}
onOpen={() => setShowPersonalize(undefined)}
onClose={() => setShowPersonalize(undefined)}
onCancel={() => {
setState && setState(showPersonalize as IVoicePerm);
setShowPersonalize(undefined);
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/src/components/App/OrgHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const OrgHead = () => {
orgRec?.attributes?.name || ''
)}
isOpen={openMember}
onOpen={setOpenMember}
onClose={() => setOpenMember(false)}
bp={isMobile ? BigDialogBp.mobile : BigDialogBp.md}
>
<GroupTabs />
Expand All @@ -261,7 +261,7 @@ export const OrgHead = () => {
)
}
isOpen={workflowVisible}
onOpen={handleWorkflowClose}
onClose={() => handleWorkflowClose(false)}
bp={isMobile ? BigDialogBp.mobile : BigDialogBp.md}
>
<StepEditor
Expand All @@ -274,7 +274,7 @@ export const OrgHead = () => {
<BigDialog
title={cardStrings?.sortProjects}
isOpen={sortVisible}
onOpen={setSortVisible}
onClose={() => setSortVisible(false)}
bp={isMobile ? BigDialogBp.mobile : BigDialogBp.md}
>
<ProjectSort teamId={orgId} onClose={() => setSortVisible(false)} />
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/AudioTab/AudioTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export function AudioTab() {
<BigDialog
title={t.choosePassage}
isOpen={attachVisible || false}
onOpen={setAttachVisible}
onClose={() => setAttachVisible(false)}
onCancel={handleAttachCancel}
>
<PassageChooser
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/Discussions/DiscussionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ export const DiscussionCard = (props: IProps) => {
/>
)}
{showMove && (
<BigDialog title={t.move} isOpen={showMove} onOpen={moveClose}>
<BigDialog title={t.move} isOpen={showMove} onClose={moveClose}>
<DiscussionMove onSelect={handleDoMove} />
</BigDialog>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/Discussions/DiscussionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ export function DiscussionList({ onClose }: DiscussionListProps) {
<BigDialog
title={t.categoryList}
isOpen={categoryOpen}
onOpen={handleCategory}
onClose={handleCategory}
onCancel={() => {
handleCatFilter(initCatFilter);
setCategoryOpen(false);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/FilterContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function FilterContent(props: FilterProps) {
return (
<BigDialog
isOpen={filterVisible}
onOpen={handleDialogOpenChange}
onClose={() => handleDialogOpenChange(false)}
title={filterStrings.title.replace('{0}', filterData.label)}
bp={BigDialogBp.sm}
>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/MediaUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function MediaUpload(props: IProps) {
return (
<BigDialog
isOpen={visible}
onOpen={handleCancel}
onClose={handleCancel}
title={title[uploadType] ?? ''}
bp={isMobile ? BigDialogBp.mobile : (bp ?? BigDialogBp.sm)}
>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/PassageDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ export const PassageDataTable = (props: IProps) => {
</Typography>
}
isOpen={termsCheck !== undefined}
onOpen={handleTermsCancel}
onClose={handleTermsCancel}
>
<>
<Typography>{termsOfUse(curTermsCheck)}</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export function ConsultantCheck({ width }: IProps) {
<BigDialog
title={t.compareItems}
isOpen={open}
onOpen={() => handleCompareOpen(false)}
onClose={() => handleCompareOpen(false)}
>
<ConsultantCheckCompare
compare={compare}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ export default function FindAquifer({ onClose }: IProps) {
</Typography>
}
isOpen={previewOpen}
onOpen={(isOpen: boolean) => {
setPreviewOpen(isOpen);
if (!isOpen) setPreviewItem(null);
onClose={() => {
setPreviewOpen(false);
setPreviewItem(null);
}}
bp={isMobileWidth ? BigDialogBp.mobile : BigDialogBp.sm}
mobileNoHorizontalScroll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ export function PassageDetailArtifacts() {
title={t.findResource.replace('{0}', passageRef(passage) || '')}
description={<Typography>{t.findResourceDesc}</Typography>}
isOpen={findOpen}
onOpen={handleFindVisible}
onClose={() => handleFindVisible(false)}
bp={BigDialogBp.sm}
>
<FindTabs
Expand All @@ -1260,7 +1260,7 @@ export function PassageDetailArtifacts() {
: t.passageResource
)}
isOpen={sharedResourceVisible}
onOpen={handleSharedResourceVisible}
onClose={() => handleSharedResourceVisible(false)}
bp={BigDialogBp.md}
>
<SelectSharedResource
Expand All @@ -1275,7 +1275,7 @@ export function PassageDetailArtifacts() {
bp={BigDialogBp.lg}
title={t.generalResources}
isOpen={projectResourceVisible}
onOpen={handleProjectResourceVisible}
onClose={() => handleProjectResourceVisible(false)}
>
<SelectProjectResource
onSelect={(m) => {
Expand All @@ -1297,7 +1297,7 @@ export function PassageDetailArtifacts() {
</Typography>
}
isOpen={projResPassageVisible}
onOpen={handleProjResPassageVisible}
onClose={() => handleProjResPassageVisible(false)}
disableBackdropClose
>
{projResPassageVisible ? (
Expand All @@ -1324,7 +1324,7 @@ export function PassageDetailArtifacts() {
: t.editAudioResource
}
isOpen={projResWizVisible}
onOpen={handleProjResWizVisible}
onClose={() => handleProjResWizVisible(false)}
bp={BigDialogBp.md}
disableBackdropClose
// Flex column so ProjectResourceConfigure can fill the height and pin
Expand All @@ -1349,7 +1349,7 @@ export function PassageDetailArtifacts() {
<BigDialog
title={editAudio ? t.editAudioResource : t.editResource}
isOpen={Boolean(editResource)}
onOpen={handleEditResourceVisible}
onClose={() => handleEditResourceVisible(false)}
onSave={allowEditSave ? handleEditSave : undefined}
onCancel={handleEditCancel}
bp={BigDialogBp.sm}
Expand Down Expand Up @@ -1405,7 +1405,7 @@ export function PassageDetailArtifacts() {
<BigDialog
title={t.textResource}
isOpen={Boolean(markDown)}
onOpen={() => setMarkDoan('')}
onClose={() => setMarkDoan('')}
bp={BigDialogBp.sm}
>
<MarkDownView value={markDown} />
Expand All @@ -1415,7 +1415,7 @@ export function PassageDetailArtifacts() {
<BigDialog
title={t.audioScripture}
isOpen={Boolean(audioScriptureVisible)}
onOpen={() => setAudioScriptureVisible(false)}
onClose={() => setAudioScriptureVisible(false)}
bp={BigDialogBp.sm}
setCloseRequested={setBiblebrainClose}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ export function PassageDetailArtifactsMobile() {
</Typography>
}
isOpen={findOpen}
onOpen={handleFindVisible}
onClose={() => handleFindVisible(false)}
bp={BigDialogBp.mobile}
mobilePaperWidth="min(356px, calc(100vw - 4px))"
dialogContentSx={{
Expand All @@ -1240,7 +1240,7 @@ export function PassageDetailArtifactsMobile() {
: t.passageResource
)}
isOpen={sharedResourceVisible}
onOpen={handleSharedResourceVisible}
onClose={() => handleSharedResourceVisible(false)}
bp={BigDialogBp.mobile}
>
<SelectSharedResource
Expand All @@ -1255,7 +1255,7 @@ export function PassageDetailArtifactsMobile() {
bp={BigDialogBp.mobile}
title={t.generalResources}
isOpen={projectResourceVisible}
onOpen={handleProjectResourceVisible}
onClose={() => handleProjectResourceVisible(false)}
>
<SelectProjectResource
onSelect={(m) => {
Expand All @@ -1277,7 +1277,7 @@ export function PassageDetailArtifactsMobile() {
</Typography>
}
isOpen={projResPassageVisible}
onOpen={handleProjResPassageVisible}
onClose={() => handleProjResPassageVisible(false)}
disableBackdropClose
>
{projResPassageVisible ? (
Expand All @@ -1300,7 +1300,7 @@ export function PassageDetailArtifactsMobile() {
<BigDialog
title={t.projectResourceConfigure}
isOpen={projResWizVisible}
onOpen={handleProjResWizVisible}
onClose={() => handleProjResWizVisible(false)}
bp={BigDialogBp.md}
disableBackdropClose
>
Expand All @@ -1320,7 +1320,7 @@ export function PassageDetailArtifactsMobile() {
<BigDialog
title={editAudio ? t.editAudioResource : t.editResource}
isOpen={Boolean(editResource)}
onOpen={handleEditResourceVisible}
onClose={() => handleEditResourceVisible(false)}
onSave={allowEditSave ? handleEditSave : undefined}
onCancel={handleEditCancel}
bp={BigDialogBp.mobile}
Expand Down Expand Up @@ -1384,7 +1384,7 @@ export function PassageDetailArtifactsMobile() {
mobileThickScrollbar
mobileNoHorizontalScroll
isOpen={Boolean(markDown)}
onOpen={() => {
onClose={() => {
setMarkDoan('');
setMarkDownTitle('');
}}
Expand All @@ -1397,7 +1397,7 @@ export function PassageDetailArtifactsMobile() {
<BigDialog
title={t.audioScripture}
isOpen={Boolean(audioScriptureVisible)}
onOpen={() => setAudioScriptureVisible(false)}
onClose={() => setAudioScriptureVisible(false)}
bp={BigDialogBp.mobile}
setCloseRequested={setBiblebrainClose}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const KeyTerms = ({ width }: IProps) => {
<BigDialog
title={t.termDetail}
isOpen={Boolean(term)}
onOpen={handleClose}
onClose={handleClose}
>
<KeyTermDetail
term={term as IKeyTerm & ILocalTerm}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export function PassageDetailRecord(props: IProps) {
<BigDialog
title={ts.versionHistory}
isOpen={versionVisible}
onOpen={handleVerHistClose}
onClose={handleVerHistClose}
bp={isMobileView ? BigDialogBp.mobile : undefined}
>
<VersionDlg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const SelectRecording = (props: IProps) => {
<BigDialog
title={t.selectRecording}
isOpen={chooser}
onOpen={setChooser}
onClose={() => setChooser(false)}
>
<TableContainer component={Paper}>
<Table size="small" aria-label="a dense table">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,7 @@ export default function BoldClauseTranscriptionEditor({
<BigDialog
title={tPlayer.recognizeProgress}
isOpen={asrVisible}
onOpen={(open) => {
if (!open) handleAsrClose();
}}
onClose={() => handleAsrClose()}
bp={isMobile ? BigDialogBp.mobile : BigDialogBp.sm}
mobileNoHorizontalScroll={isMobile}
mobilePaperWidth={
Expand All @@ -455,7 +453,7 @@ export default function BoldClauseTranscriptionEditor({
<BigDialog
title={tPlayer.recognizeSpeechSettings}
isOpen={asrLangVisible}
onOpen={() => handleAsrLanguageClose(true)}
onClose={() => handleAsrLanguageClose(true)}
bp={isMobile ? BigDialogBp.mobile : BigDialogBp.sm}
mobileNoHorizontalScroll={isMobile}
mobilePaperWidth={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ export function PassageDetailTranscribeMobileContent({ width }: IProps) {
<BigDialog
title={tPlayer.recognizeSpeechSettings}
isOpen={asr.asrLangVisible}
onOpen={() => asr.handleAsrLanguageClose(true)}
onClose={() => asr.handleAsrLanguageClose(true)}
bp={BigDialogBp.mobile}
>
<SelectAsrLanguage
Expand All @@ -951,7 +951,7 @@ export function PassageDetailTranscribeMobileContent({ width }: IProps) {
<BigDialog
title={tPlayer.recognizeProgress}
isOpen={asr.asrProgressVisible}
onOpen={asr.setAsrProgressVisible}
onClose={() => asr.setAsrProgressVisible(false)}
bp={BigDialogBp.mobile}
mobileNoHorizontalScroll={true}
mobilePaperWidth="min(356px, calc(100vw - 4px))"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/PolicyDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const PolicyDialog = (props: PolicyDialogProps) => {
<BigDialog
title=""
isOpen={isOpen}
onOpen={onClose}
onClose={onClose}
bp={isMobile ? BigDialogBp.mobile : BigDialogBp.sm}
mobileNoHorizontalScroll
>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/components/ProjectDownloadAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export const ProjectDownloadAlert = (props: IProps) => {
<BigDialog
title={t.download}
isOpen={alert}
onOpen={handleClose(true)}
onClose={handleClose(true)}
bp={BigDialogBp.sm}
description={
<Typography sx={{ fontSize: 'small' }}>
Expand Down Expand Up @@ -579,7 +579,7 @@ export const ProjectDownloadAlert = (props: IProps) => {
<BigDialog
title={t.missingFiles}
isOpen={showMissingFiles}
onOpen={() => setShowMissingFiles(false)}
onClose={() => setShowMissingFiles(false)}
bp={BigDialogBp.md}
>
<Box>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/components/Sheet/ScriptureTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,7 @@ export function ScriptureTable(props: IProps) {
<BigDialog
title={ts.versionHistory}
isOpen={versionRow !== undefined}
onOpen={handleVerHistClose}
onClose={handleVerHistClose}
>
<VersionDlg
passId={versionRow?.passage?.id || ''}
Expand All @@ -2357,7 +2357,7 @@ export function ScriptureTable(props: IProps) {
: ts.versionHistory
}
isOpen={editRow !== undefined}
onOpen={handleEditClose}
onClose={handleEditClose}
>
{editRow && (shared || isNote) ? (
<ResourceTabs
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/Spelling.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Spelling = () => {
<BigDialog
title={t.spellingLangs}
isOpen={open}
onOpen={setOpen}
onClose={() => setOpen(false)}
onSave={handleSave}
onCancel={handleCancel}
>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/StepEditor/StepEditor.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function StepEditorInDialog({ org }: { org: string }) {
<BigDialog
title="Edit Workflow — Test"
isOpen={open}
onOpen={setOpen}
onClose={() => setOpen(false)}
bp={BigDialogBp.md}
>
<StepEditor org={org} />
Expand Down
Loading
Loading