* Toss creaky signer Modal, revamp * WIP * WIP * WIP * WIP * Basics seem working * Adjust layout * WIP * Cleanups for unsigned * Unsigned * Start at signing-only * Signing should be ok * Signing operational * Remove old modal * Update packages/react-signer/src/Modal/TxSigned.tsx * JS app integration * Small styling adjustments * Prelim proxy support * Proxy on/off switch * isProxyActive * Multi + Proxy ordering (& testing) * Proxy with multisig * Remove debug logs * Qr with 2 column layout * Padding adjustments * Cleanups * Cleanup PaymentInfo * Generic asset cleanup * flatten * Don't save latest values when filter is active
42 lines
922 B
TypeScript
42 lines
922 B
TypeScript
// Copyright 2017-2020 @polkadot/react-components 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 React from 'react';
|
|
import styled from 'styled-components';
|
|
|
|
import Column from './Column';
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
type ColumarType = React.ComponentType<Props> & {
|
|
Column: React.ComponentType<Props>;
|
|
};
|
|
|
|
function Columar ({ children, className = '' }: Props): React.ReactElement<Props> {
|
|
return (
|
|
<div className={`ui--Columnar ${className}`}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
const ColumarExp = React.memo(styled(Columar)`
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
.ui--Column {
|
|
@media (min-width: 1025px) {
|
|
max-width: 50%;
|
|
min-width: 50%;
|
|
}
|
|
}
|
|
`) as unknown as ColumarType;
|
|
|
|
ColumarExp.Column = Column;
|
|
|
|
export default ColumarExp;
|