Skip to content

Commit

Permalink
fix(client-electron): update layout of release notes dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
marcincichocki authored Sep 21, 2022
1 parent 542f98b commit 15c9e30
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions src/electron/renderer/components/ReleaseNotesDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { UpdateInfo } from 'electron-updater';
import { useIpcEventDialog } from '../common';
import { FlatButton } from './Buttons';
import { Dialog, DialogBody, DialogTitle } from './Dialog';
import { Row } from './Flex';
import { Only } from './Only';

export const ReleaseNotesDialog = () => {
Expand Down Expand Up @@ -35,22 +36,16 @@ export const ReleaseNotesDialog = () => {
__html: sanitize(updateInfo.releaseNotes as string),
}}
/>
<FlatButton
onClick={close}
color="accent"
style={{ alignSelf: 'flex-end' }}
>
Close
</FlatButton>
<Only when={updateAvailable}>
<FlatButton
color="accent"
style={{ alignSelf: 'flex-end' }}
onClick={update}
>
Update to {updateInfo.version}
<Row gap style={{ justifyContent: 'flex-end' }}>
<FlatButton onClick={close} color="primary">
Close
</FlatButton>
</Only>
<Only when={updateAvailable}>
<FlatButton color="accent" onClick={update}>
Update to {updateInfo.version}
</FlatButton>
</Only>
</Row>
</Dialog>
);
};

0 comments on commit 15c9e30

Please sign in to comment.