aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/AppUpdateInfoBar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/AppUpdateInfoBar.tsx')
-rw-r--r--src/components/AppUpdateInfoBar.tsx14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/components/AppUpdateInfoBar.tsx b/src/components/AppUpdateInfoBar.tsx
index 3ff488b74..ff4a9b9ad 100644
--- a/src/components/AppUpdateInfoBar.tsx
+++ b/src/components/AppUpdateInfoBar.tsx
@@ -1,6 +1,7 @@
1import { defineMessages, useIntl } from 'react-intl'; 1import { defineMessages, useIntl } from 'react-intl';
2 2
3import { mdiInformation } from '@mdi/js'; 3import { mdiInformation } from '@mdi/js';
4import { MouseEventHandler } from 'react';
4import InfoBar from './ui/InfoBar'; 5import InfoBar from './ui/InfoBar';
5import Icon from './ui/icon'; 6import Icon from './ui/icon';
6 7
@@ -21,17 +22,14 @@ const messages = defineMessages({
21 }, 22 },
22}); 23});
23 24
24type Props = { 25export interface IProps {
25 onInstallUpdate: () => void; 26 onInstallUpdate: MouseEventHandler<HTMLButtonElement>;
26 onHide: () => void; 27 onHide: () => void;
27 updateVersionParsed: string; 28 updateVersionParsed: string;
28}; 29}
29 30
30const AppUpdateInfoBar = ({ 31const AppUpdateInfoBar = (props: IProps) => {
31 onInstallUpdate, 32 const { onInstallUpdate, updateVersionParsed, onHide } = props;
32 updateVersionParsed,
33 onHide,
34}: Props) => {
35 const intl = useIntl(); 33 const intl = useIntl();
36 34
37 return ( 35 return (