ghost-portal/packages/app-society/src/Overview/Member.tsx
Jaco Greeff c85c256abe
Democracy with useTranslation (#2153)
* Democracy with useTranslation

* Remove isSuspended display

* One isSubstrateV2 less

* Linting
2020-01-20 13:57:55 +01:00

31 lines
821 B
TypeScript

// Copyright 2017-2020 @polkadot/app-society 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 { DeriveSocietyMember } from '@polkadot/api-derive/types';
import React from 'react';
import { AddressSmall } from '@polkadot/react-components';
import { useTranslation } from '../translate';
interface Props {
value: DeriveSocietyMember;
}
export default function Member ({ value: { accountId, strikes } }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
return (
<tr>
<td className='top'>
<AddressSmall value={accountId} />
</td>
<td className='number top'>
<label>{t('strikes')}</label>
{strikes.toString()}
</td>
</tr>
);
}