* Introduce the enable() interface * Provider * Add auth requests to state * injector comments * Background extension list, spprove & reject * Cleanups * Untested, but the UI parts are there (test next) * linting * Not pretty, but seems to auth * Small styling adjustments * Adjust Box layout slightly * Small styling adjustments * signing -> transactions * isDanger for links * Styling defaults
34 lines
804 B
TypeScript
34 lines
804 B
TypeScript
// Copyright 2019 @polkadot/extension-ui 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 { SignRequestsFromCtx } from '../../components/types';
|
|
|
|
import React from 'react';
|
|
|
|
import { Header, withSignRequests } from '../../components';
|
|
import Request from './Request';
|
|
|
|
type Props = {
|
|
requests: SignRequestsFromCtx
|
|
};
|
|
|
|
function Signing ({ requests }: Props) {
|
|
return (
|
|
<div>
|
|
<Header label='transactions' />
|
|
{requests.map(([id, request, url], index) => (
|
|
<Request
|
|
isFirst={index === 0}
|
|
key={id}
|
|
request={request}
|
|
signId={id}
|
|
url={url}
|
|
/>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default withSignRequests(Signing);
|