diff options
Diffstat (limited to 'src/components/AppUpdateInfoBar.tsx')
-rw-r--r-- | src/components/AppUpdateInfoBar.tsx | 14 |
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 @@ | |||
1 | import { defineMessages, useIntl } from 'react-intl'; | 1 | import { defineMessages, useIntl } from 'react-intl'; |
2 | 2 | ||
3 | import { mdiInformation } from '@mdi/js'; | 3 | import { mdiInformation } from '@mdi/js'; |
4 | import { MouseEventHandler } from 'react'; | ||
4 | import InfoBar from './ui/InfoBar'; | 5 | import InfoBar from './ui/InfoBar'; |
5 | import Icon from './ui/icon'; | 6 | import Icon from './ui/icon'; |
6 | 7 | ||
@@ -21,17 +22,14 @@ const messages = defineMessages({ | |||
21 | }, | 22 | }, |
22 | }); | 23 | }); |
23 | 24 | ||
24 | type Props = { | 25 | export 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 | ||
30 | const AppUpdateInfoBar = ({ | 31 | const 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 ( |