Browse Source

Merge pull request #1509 from gre/disable-ripple-install

Disable Ripple & ZenCash install (now XRP and Horizen)
master
Meriadec Pillet 6 years ago
committed by GitHub
parent
commit
3be9d3fee6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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, mode: Mode,
} }
const oldAppsInstallDisabled = ['ZenCash', 'Ripple']
const canHandleInstall = c => !oldAppsInstallDisabled.includes(c.name)
const LoadingApp = () => ( const LoadingApp = () => (
<FakeManagerAppContainer noShadow align="center" justify="center" style={{ height: 90 }}> <FakeManagerAppContainer noShadow align="center" justify="center" style={{ height: 90 }}>
<Spinner size={16} color="rgba(0, 0, 0, 0.3)" /> <Spinner size={16} color="rgba(0, 0, 0, 0.3)" />
@ -285,7 +288,7 @@ class AppsList extends PureComponent<Props, State> {
name={c.name} name={c.name}
version={`Version ${c.version}`} version={`Version ${c.version}`}
icon={ICONS_FALLBACK[c.icon] || c.icon} icon={ICONS_FALLBACK[c.icon] || c.icon}
onInstall={this.handleInstallApp(c)} onInstall={canHandleInstall(c) ? this.handleInstallApp(c) : null}
onUninstall={this.handleUninstallApp(c)} onUninstall={this.handleUninstallApp(c)}
/> />
))} ))}

4
src/components/ManagerPage/ManagerApp.js

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

Loading…
Cancel
Save