mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-13 04:11:00 +00:00
Move ui-identicon -> react-identicon (#165)
* Move ui-identicon -> react-identicon * ui-identicon import fix * Update README package links * Update doc sidebar links * Adjust react-qr signatures, CHANGELOG
This commit is contained in:
@@ -23,7 +23,7 @@ interface State {
|
||||
frames: string[];
|
||||
frameIdx: number;
|
||||
image: string | null;
|
||||
timerId: NodeJS.Timeout | null;
|
||||
timerId: number | null;
|
||||
valueHash: string | null;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ class Display extends React.PureComponent<Props, State> {
|
||||
|
||||
public componentDidMount (): void {
|
||||
this.setState({
|
||||
timerId: setInterval(this.nextFrame, FRAME_DELAY)
|
||||
timerId: window.setInterval(this.nextFrame, FRAME_DELAY)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export default class DisplayExtrinsic extends React.PureComponent<Props, State>
|
||||
dataHash: null
|
||||
};
|
||||
|
||||
public getDerivedStateFromProps ({ address }: Props, prevState: State): State | null {
|
||||
public static getDerivedStateFromProps ({ address }: Props, prevState: State): State | null {
|
||||
const data = u8aConcat(
|
||||
PREFIX,
|
||||
encodeString(address)
|
||||
|
||||
@@ -30,7 +30,7 @@ export default class DisplayPayload extends React.PureComponent<Props, State> {
|
||||
dataHash: null
|
||||
};
|
||||
|
||||
public getDerivedStateFromProps ({ address, payload }: Props, prevState: State): State | null {
|
||||
public static getDerivedStateFromProps ({ address, payload }: Props, prevState: State): State | null {
|
||||
const data = u8aConcat(
|
||||
SUBSTRATE,
|
||||
CRYPTO_SR25519,
|
||||
|
||||
Reference in New Issue
Block a user