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:
Jaco Greeff
2019-07-29 11:30:37 +02:00
committed by GitHub
parent faf234fedc
commit c3f57c19e8
50 changed files with 56 additions and 52 deletions
+2 -2
View File
@@ -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)
});
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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,