mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-08-08 18:05:39 +00:00
c71ddb6e0d
- 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
47 lines
956 B
TypeScript
47 lines
956 B
TypeScript
// Copyright 2017-2025 @polkadot/app-files authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { CSSProperties } from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import { styled } from '@polkadot/react-components';
|
|
|
|
export interface Props {
|
|
className?: string,
|
|
style?: CSSProperties,
|
|
progress: number
|
|
}
|
|
|
|
function Progress ({ className = '', progress, style }: Props) {
|
|
return (
|
|
<StyledDiv
|
|
className={`${className} highlight--border`}
|
|
style={style}
|
|
>
|
|
<div
|
|
className='file-progress-bar highlight--bg'
|
|
style={{ width: `${progress}%` }}
|
|
/>
|
|
</StyledDiv>
|
|
);
|
|
}
|
|
|
|
const StyledDiv = styled.div`
|
|
width: 100%;
|
|
background: unset;
|
|
overflow: hidden;
|
|
height: 1.4rem;
|
|
border-radius: 0.7rem;
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
|
|
.file-progress-bar {
|
|
transition: width 100ms ease-in-out;
|
|
width: 0;
|
|
height: 100%;
|
|
}
|
|
`;
|
|
|
|
export default React.memo<Props>(Progress);
|