fix: change undefined css class

This commit is contained in:
Mo
2022-06-02 11:00:06 -05:00
parent ed5f6495aa
commit 94199fb6b5
5 changed files with 9 additions and 9 deletions

View File

@@ -52,15 +52,15 @@ const BackupsDropZone: FunctionComponent<Props> = ({ application }) => {
void application.alertService.alert(
`<strong>${decryptedFileItem.name}</strong> has been successfully decrypted and saved to your chosen directory.`,
)
setBinaryFile(undefined)
setDecryptedFileItem(undefined)
setDroppedFile(undefined)
} else if (result === 'failed') {
void application.alertService.alert(
'Unable to save file to local directory. This may be caused by failure to decrypt, or failure to save the file locally.',
)
}
setBinaryFile(undefined)
setDecryptedFileItem(undefined)
setDroppedFile(undefined)
setIsSavingAsDecrypted(false)
}, [decryptedFileItem, application, binaryFile, fileSystem])

View File

@@ -67,7 +67,7 @@ const FileBackupsDesktop = ({ application, backupsService }: Props) => {
{!backupsEnabled && (
<>
<HorizontalSeparator classes="mt-5 mb-4" />
<HorizontalSeparator classes="mt-2.5 mb-4" />
<Text>File backups are not enabled. Enable to choose where your files are backed up.</Text>
</>
)}
@@ -90,7 +90,7 @@ const FileBackupsDesktop = ({ application, backupsService }: Props) => {
checkmark={false}
/>
<div className="flex flex-row mt-5">
<div className="flex flex-row mt-2.5">
<Button
variant="normal"
label="Open Backups Location"

View File

@@ -70,7 +70,7 @@ const LabsPane: FunctionComponent<Props> = ({ application }) => {
</div>
<Switch onChange={toggleFeature} checked={isEnabled} />
</div>
{showHorizontalSeparator && <HorizontalSeparator classes="mt-5 mb-3" />}
{showHorizontalSeparator && <HorizontalSeparator classes="mt-2.5 mb-3" />}
</Fragment>
)
})}

View File

@@ -37,7 +37,7 @@ const ListedAccountItem: FunctionComponent<Props> = ({ account, showSeparator, a
</>
)}
</div>
{showSeparator && <HorizontalSeparator classes="mt-5 mb-3" />}
{showSeparator && <HorizontalSeparator classes="mt-2.5 mb-3" />}
</>
)
}

View File

@@ -87,7 +87,7 @@ const ErroredItems: FunctionComponent<Props> = ({ viewControllerManager }: Props
}}
/>
</div>
<HorizontalSeparator classes="mt-5 mb-3" />
<HorizontalSeparator classes="mt-2.5 mb-3" />
{erroredItems.map((item, index) => {
return (
@@ -128,7 +128,7 @@ const ErroredItems: FunctionComponent<Props> = ({ viewControllerManager }: Props
</div>
</div>
</div>
{index < erroredItems.length - 1 && <HorizontalSeparator classes="mt-5 mb-3" />}
{index < erroredItems.length - 1 && <HorizontalSeparator classes="mt-2.5 mb-3" />}
</Fragment>
)
})}