mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-12-03 11:07:05 +00:00
- 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
34 lines
695 B
TypeScript
34 lines
695 B
TypeScript
// Copyright 2017-2025 @polkadot/app-storage authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { QueryTypes } from './types.js';
|
|
|
|
import React from 'react';
|
|
|
|
import Query from './Query.js';
|
|
|
|
interface Props {
|
|
onRemove: (id: number) => void;
|
|
value?: QueryTypes[];
|
|
}
|
|
|
|
function Queries ({ onRemove, value }: Props): React.ReactElement<Props> | null {
|
|
if (!value?.length) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<section className='storage--Queries'>
|
|
{value.map((query): React.ReactNode =>
|
|
<Query
|
|
key={query.id}
|
|
onRemove={onRemove}
|
|
value={query}
|
|
/>
|
|
)}
|
|
</section>
|
|
);
|
|
}
|
|
|
|
export default React.memo(Queries);
|