* Update fees, mortal & tips * Linting * Revert findCall * Fix fee calculation (take version byte into account) * Remove MAX (weights), add weight note * does not *
34 lines
883 B
TypeScript
34 lines
883 B
TypeScript
// Copyright 2017-2019 @polkadot/react-signer 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 { BareProps } from '@polkadot/react-components/types';
|
|
|
|
import './index.css';
|
|
|
|
import React, { useContext } from 'react';
|
|
import QueueContext from '@polkadot/react-components/Status/Context';
|
|
|
|
import Modal from './Modal';
|
|
|
|
interface Props extends BareProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function Signer ({ children, className, style }: Props): React.ReactElement<Props> {
|
|
const { txqueue, queueSetTxStatus } = useContext(QueueContext);
|
|
|
|
return (
|
|
<>
|
|
{children}
|
|
<Modal
|
|
className={className}
|
|
key='signer-modal'
|
|
queue={txqueue}
|
|
queueSetTxStatus={queueSetTxStatus}
|
|
style={style}
|
|
/>
|
|
</>
|
|
);
|
|
}
|