Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikstra committed Jun 9, 2020
1 parent 48c1e95 commit 0ca9c21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion scss/overwrites/_bp3-overwrites.scss
Expand Up @@ -257,4 +257,4 @@ input[type='text']:focus {

.bp3-progress-bar.bp3-intent-primary .bp3-progress-meter {
background-color: var(--colorPrimary);
}
}
22 changes: 9 additions & 13 deletions src/renderer/components/dialogs/Settings-Backup.tsx
Expand Up @@ -12,13 +12,16 @@ import { SettingsButton } from './Settings'
import { OpenDialogOptions } from 'electron'
import { ipcBackend } from '../../ipc'
import { DialogProps } from './DialogController'
import DeltaDialog, { DeltaDialogBody, DeltaDialogContent, SmallDialog } from './DeltaDialog'
import DeltaDialog, {
DeltaDialogBody,
DeltaDialogContent,
SmallDialog,
} from './DeltaDialog'
import { isOpen } from '@blueprintjs/core/lib/esm/components/context-menu/contextMenu'
import { DeltaProgressBar } from '../Login-Styles'

const { remote } = window.electron_functions


function ExportProgressDialog(props: DialogProps) {
const userFeedback = window.__userFeedback
const tx = window.translate
Expand All @@ -33,7 +36,7 @@ function ExportProgressDialog(props: DialogProps) {
props.onClose()
}

const onImexProgress = (_: any, [progress, data2] : [number,number]) => {
const onImexProgress = (_: any, [progress, data2]: [number, number]) => {
setProgress(progress)
}
useEffect(() => {
Expand All @@ -47,19 +50,12 @@ function ExportProgressDialog(props: DialogProps) {
}, [])

return (
<SmallDialog
isOpen={props.isOpen}
onClose={() => {}}
>
<SmallDialog isOpen={props.isOpen} onClose={() => {}}>
<DeltaDialogBody>
<DeltaDialogContent>
<H5 style={{marginTop:'20px'}}>Exporting backup...</H5>
<DeltaProgressBar
intent={Intent.PRIMARY}
progress={progress}
/>
<H5 style={{ marginTop: '20px' }}>Exporting backup...</H5>
<DeltaProgressBar intent={Intent.PRIMARY} progress={progress} />
</DeltaDialogContent>

</DeltaDialogBody>
</SmallDialog>
)
Expand Down

0 comments on commit 0ca9c21

Please sign in to comment.