ghost-portal/packages/page-staking/src/Overview/index.tsx
Jaco Greeff d30b88b7f4
Adjust staking targets/overview sorting displays (#2999)
* Adjust staking targets/overview sorting displays

* Removce whack eslint bug comment
2020-06-20 14:02:42 +02:00

33 lines
953 B
TypeScript

// Copyright 2017-2020 @polkadot/app-staking authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { DeriveStakingOverview } from '@polkadot/api-derive/types';
import { BareProps } from '@polkadot/react-components/types';
import React from 'react';
import CurrentList from './CurrentList';
interface Props extends BareProps {
hasQueries: boolean;
isIntentions?: boolean;
next?: string[];
stakingOverview?: DeriveStakingOverview;
}
function Overview ({ className = '', hasQueries, isIntentions, next, stakingOverview }: Props): React.ReactElement<Props> {
return (
<div className={`staking--Overview ${className}`}>
<CurrentList
hasQueries={hasQueries}
isIntentions={isIntentions}
next={next}
stakingOverview={stakingOverview}
/>
</div>
);
}
export default React.memo(Overview);