-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathInstallSuccess.jsx
More file actions
30 lines (26 loc) · 956 Bytes
/
InstallSuccess.jsx
File metadata and controls
30 lines (26 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React, { PureComponent } from 'react'
import { translate } from 'twake-i18n'
import Button from 'cozy-ui/transpiled/react/Buttons'
import {
ModalContent,
ModalHeader
} from 'cozy-ui/transpiled/react/deprecated/Modal'
import AppIcon from 'cozy-ui-plus/dist/AppIcon'
import { getAppIconProps } from '@/ducks/apps'
export class InstallSuccess extends PureComponent {
render() {
const { t, app, onTerminate } = this.props
return (
<React.Fragment>
<ModalHeader className="sto-install-success-header">
<AppIcon app={app} className="sto-app-icon" {...getAppIconProps()} />
</ModalHeader>
<ModalContent className="sto-install-success-content">
<p>{t('intent.install.success', { appName: app.name })}</p>
<Button label={t('intent.install.terminate')} onClick={onTerminate} />
</ModalContent>
</React.Fragment>
)
}
}
export default translate()(InstallSuccess)