Skip to content

Commit

Permalink
added skip button to update callout
Browse files Browse the repository at this point in the history
  • Loading branch information
corn-potage committed Aug 24, 2024
1 parent 9e18694 commit abf5dd1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ export interface UpdateCalloutProps {
serviceName: string;
releaseNotesUrl?: string;
onClickShowChanges?: () => void;
onClose?: () => void;
}

export const UpdateCallout = ({
onClickInstallUpdate,
serviceName,
releaseNotesUrl,
onClickShowChanges,
onClose,
}: UpdateCalloutProps) => {
const { t: g } = useTranslation('genericComponents');

Expand Down Expand Up @@ -60,6 +62,13 @@ export const UpdateCallout = ({
</div>
)}
<div className={buttonContainer}>
<Button
type="secondary"
wide
label={g('Skip')}
size="small"
onClick={onClose}
/>
<Button
type="primary"
wide
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Presentational/UpdateModal/Update.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const Update = ({
}),
);
}}
onClose={modalOnClose}
onClickInstallUpdate={onUpdate}
/>
) : (
Expand Down

0 comments on commit abf5dd1

Please sign in to comment.