mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-26 21:15:40 +00:00
971df8edba
- Remove all 3rd party parachain configurations from endpoints: - productionRelayPolkadot.ts: Keep only system parachains - productionRelayDicle.ts: Keep only system parachains - testingRelayZagros.ts: Keep only system parachains - testingRelayTeyrChain.ts: Keep only system parachains - Update domain references: - polkadot.js.org → pezkuwichain.app - wiki.polkadot.network → wiki.pezkuwichain.io - dotapps.io → pezkuwichain.app - statement.polkadot.network → docs.pezkuwichain.io/statement - support.polkadot.network → docs.pezkuwichain.io - Update repository references: - github.com/pezkuwi-js/apps → github.com/pezkuwichain/pwap - Rename system parachains to Pezkuwi ecosystem: - PolkadotAssetHub → PezkuwiAssetHub - polkadotBridgeHub → pezkuwiBridgeHub - polkadotCollectives → pezkuwiCollectives - polkadotCoretime → pezkuwiCoretime - polkadotPeople → pezkuwiPeople - Update network name in claims utility: - Polkadot → Pezkuwi
76 lines
1.5 KiB
TypeScript
76 lines
1.5 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import React from 'react';
|
|
|
|
import { styled } from '../styled.js';
|
|
|
|
interface Props {
|
|
align?: 'center' | 'left' | 'right';
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
hint?: React.ReactNode;
|
|
}
|
|
|
|
function Columns ({ align = 'left', children, className = '', hint }: Props): React.ReactElement<Props> {
|
|
return (
|
|
<StyledDiv className={`${className} ui--Modal-Columns ${align}Align`}>
|
|
<div className='ui--Modal-Columns-content'>{children}</div>
|
|
{hint && (
|
|
<div className='ui--Modal-Columns-hint'>{hint}</div>
|
|
)}
|
|
</StyledDiv>
|
|
);
|
|
}
|
|
|
|
const StyledDiv = styled.div`
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
&.centerAlign > div.ui--Modal-Columns-content {
|
|
text-align: center;
|
|
}
|
|
|
|
&.rightAlign > div.ui--Modal-Columns-content {
|
|
text-align: right;
|
|
}
|
|
|
|
&+& {
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
> div {
|
|
padding: 0.25em 0;
|
|
|
|
&:nth-child(1) {
|
|
flex: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
display: none;
|
|
flex: 0%;
|
|
}
|
|
|
|
@media only screen and (min-width: 1024px) {
|
|
&:nth-child(1),
|
|
&:only-child {
|
|
flex: 0 65%;
|
|
max-width: 65%;
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
box-sizing: border-box;
|
|
display: block;
|
|
flex: 0 34%;
|
|
font-size: var(--font-size-small);
|
|
opacity: 0.75;
|
|
padding: 0.25rem 0 0.25rem 0.5rem;
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default React.memo(Columns);
|