mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-17 10:11:06 +00:00
@@ -2,8 +2,6 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { BaseProps } from './types';
|
||||
|
||||
import React, { useCallback } from 'react';
|
||||
import { assert } from '@polkadot/util';
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
@@ -18,9 +16,12 @@ interface ScanType {
|
||||
name?: string;
|
||||
}
|
||||
|
||||
interface Props extends BaseProps {
|
||||
interface Props {
|
||||
className?: string;
|
||||
onError?: (error: Error) => void;
|
||||
onScan: (scanned: ScanType) => void;
|
||||
size?: string | number;
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
function ScanAddress ({ className, onError, onScan, size, style }: Props): React.ReactElement<Props> {
|
||||
|
||||
Reference in New Issue
Block a user