* lighter read to make it more readable on dark mode * added missing themeprops ref * ran linter * undo opacity 1 on non red 'other stake' to keep the focus on the whle number' * ran linter * isolate opacity change to format balance error text * updated settings > metadata layout to be more consistent with the rest * ran linter * Update packages/page-settings/src/Metadata/Extensions.tsx Co-authored-by: Jaco Greeff <jacogr@gmail.com> * updated ternary condition to get rid of empty string at the end as well as fixed weird indentation on styled components Co-authored-by: Jaco Greeff <jacogr@gmail.com>
27 lines
630 B
TypeScript
27 lines
630 B
TypeScript
// Copyright 2017-2021 @polkadot/app-settings authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import React from 'react';
|
|
|
|
import { useApi } from '@polkadot/react-hooks';
|
|
|
|
import useChainInfo from '../useChainInfo';
|
|
import Extensions from './Extensions';
|
|
import NetworkSpecs from './NetworkSpecs';
|
|
|
|
export default function Metadata (): React.ReactElement {
|
|
const { isDevelopment } = useApi();
|
|
const chainInfo = useChainInfo();
|
|
|
|
return (
|
|
<>
|
|
{!isDevelopment && (
|
|
<>
|
|
<Extensions chainInfo={chainInfo} />
|
|
</>
|
|
)}
|
|
<NetworkSpecs chainInfo={chainInfo} />
|
|
</>
|
|
);
|
|
}
|