mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-16 21:05:40 +00:00
Add Pezkuwi SDK UI - Polkadot.js Apps clone
- Clone Polkadot.js Apps repository - Update package.json with Pezkuwi branding - Add Pezkuwi endpoint to production chains (wss://pezkuwichain.app:9944) - Create comprehensive README for SDK UI - Set up project structure with all packages Next steps: - Apply Kurdistan colors (Kesk, Sor, Zer, Spi + Black) to UI theme - Replace logos with Pezkuwi branding - Test build and deployment
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import Labelled from './Labelled.js';
|
||||
import { styled } from './styled.js';
|
||||
|
||||
interface Props {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
type?: 'error' | 'info' | 'warning';
|
||||
}
|
||||
|
||||
function InfoForInput ({ children, className = '', type = 'info' }: Props): React.ReactElement<Props> {
|
||||
return (
|
||||
<StyledLabelled>
|
||||
<div className={`${className} ${type}`}>{children}</div>
|
||||
</StyledLabelled>
|
||||
);
|
||||
}
|
||||
|
||||
const StyledLabelled = styled(Labelled)`
|
||||
background: white;
|
||||
border-radius: 0 0 0.25rem 0.25rem;
|
||||
margin: -0.5rem 0 0.25rem;
|
||||
padding: 1.25rem 1.5rem 1rem;
|
||||
|
||||
&.error {
|
||||
background: #db2828;
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
&.warning {
|
||||
background: #ffffe0;
|
||||
}
|
||||
|
||||
> ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
`;
|
||||
|
||||
export default React.memo(InfoForInput);
|
||||
Reference in New Issue
Block a user