|
@ -2,6 +2,9 @@ |
|
|
|
|
|
|
|
|
import React from 'react' |
|
|
import React from 'react' |
|
|
import styled from 'styled-components' |
|
|
import styled from 'styled-components' |
|
|
|
|
|
import { translate } from 'react-i18next' |
|
|
|
|
|
|
|
|
|
|
|
import type { T } from 'types/common' |
|
|
|
|
|
|
|
|
import Box from 'components/base/Box' |
|
|
import Box from 'components/base/Box' |
|
|
import Text from 'components/base/Text' |
|
|
import Text from 'components/base/Text' |
|
@ -40,6 +43,7 @@ const AppName = styled(Box).attrs({ |
|
|
` |
|
|
` |
|
|
|
|
|
|
|
|
type Props = { |
|
|
type Props = { |
|
|
|
|
|
t: T, |
|
|
name: string, |
|
|
name: string, |
|
|
version: string, |
|
|
version: string, |
|
|
icon: string, |
|
|
icon: string, |
|
@ -47,8 +51,8 @@ type Props = { |
|
|
// onUninstall: Function,
|
|
|
// onUninstall: Function,
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export default function ManagerApp(props: Props) { |
|
|
function ManagerApp(props: Props) { |
|
|
const { name, version, icon, onInstall } = props |
|
|
const { name, version, icon, onInstall, t } = props |
|
|
const iconUrl = `https://api.ledgerwallet.com/update/assets/icons/${icon}` |
|
|
const iconUrl = `https://api.ledgerwallet.com/update/assets/icons/${icon}` |
|
|
return ( |
|
|
return ( |
|
|
<Container> |
|
|
<Container> |
|
@ -60,8 +64,10 @@ export default function ManagerApp(props: Props) { |
|
|
</Text> |
|
|
</Text> |
|
|
</Box> |
|
|
</Box> |
|
|
<Button outline onClick={onInstall}> |
|
|
<Button outline onClick={onInstall}> |
|
|
{'Install'} |
|
|
{t('manager:install')} |
|
|
</Button> |
|
|
</Button> |
|
|
</Container> |
|
|
</Container> |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export default translate()(ManagerApp) |
|
|