Browse Source

Disable Ripple & ZenCash install (now XRP and Horizen)

master
Gaëtan Renaudeau 6 years ago
parent
commit
b03195c545
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 5
      src/components/ManagerPage/AppsList.js
  2. 4
      src/components/ManagerPage/ManagerApp.js

5
src/components/ManagerPage/AppsList.js

@ -71,6 +71,9 @@ type State = {
mode: Mode,
}
const oldAppsInstallDisabled = ['ZenCash', 'Ripple']
const canHandleInstall = c => !oldAppsInstallDisabled.includes(c.name)
const LoadingApp = () => (
<FakeManagerAppContainer noShadow align="center" justify="center" style={{ height: 90 }}>
<Spinner size={16} color="rgba(0, 0, 0, 0.3)" />
@ -285,7 +288,7 @@ class AppsList extends PureComponent<Props, State> {
name={c.name}
version={`Version ${c.version}`}
icon={ICONS_FALLBACK[c.icon] || c.icon}
onInstall={this.handleInstallApp(c)}
onInstall={canHandleInstall(c) ? this.handleInstallApp(c) : null}
onUninstall={this.handleUninstallApp(c)}
/>
))}

4
src/components/ManagerPage/ManagerApp.js

@ -49,7 +49,7 @@ type Props = {
name: string,
version: string,
icon: string,
onInstall: Function,
onInstall?: Function,
onUninstall: Function,
}
@ -64,6 +64,7 @@ function ManagerApp({ name, version, icon, onInstall, onUninstall, t }: Props) {
{version}
</Text>
</Box>
{onInstall ? (
<Button
outline
onClick={onInstall}
@ -75,6 +76,7 @@ function ManagerApp({ name, version, icon, onInstall, onUninstall, t }: Props) {
>
{t('app:manager.apps.install')}
</Button>
) : null}
<Button
outline
onClick={onUninstall}

Loading…
Cancel
Save