Skip to content
Permalink
Browse files

fix flow issues

  • Loading branch information
nicarq committed Dec 3, 2019
1 parent d3fef2a commit ab80344f5d4016fe2b107ca86f933f79123a2466
@@ -8,6 +8,10 @@ const CONFIG: ConfigType = {
websocketUrl: '',
name: 'mainnet'
},
seiza: {
simple: "",
advance: ""
},
app: {
walletRefreshInterval: 10,
serverStatusRefreshInterval: 10,
@@ -29,7 +29,10 @@ const useIframeMessageReceiver = () => {
}, []);
};

const Staking = (props: InjectedContainerProps) => {
const Staking = (props: {|
...InjectedContainerProps,
stakingUrl: string,
|}) => {
const iframeRef = React.useRef(null);
const { stores, stakingUrl } = props;
const { profile } = stores;
@@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
import SeizaFetcher from './SeizaFetcher';

import type { InjectedProps } from '../../../types/injectedPropsType';
import {ConfigType} from "../../../../config/config-types";
import type {ConfigType} from "../../../../config/config-types";

type Props = InjectedProps

@@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
import SeizaFetcher from './SeizaFetcher';

import type { InjectedProps } from '../../../types/injectedPropsType';
import {ConfigType} from "../../../../config/config-types";
import type {ConfigType} from "../../../../config/config-types";

type Props = InjectedProps;

@@ -2,10 +2,16 @@

export type ConfigType = {
network: NetworkConfigType,
seiza: SeizaConfigType,
app: AppConfigType,
genesis: GenesisConfigType,
};

export type SeizaConfigType = {|
simple: string,
advance: string,
|}

export type AppConfigType = {|
walletRefreshInterval: number,
serverStatusRefreshInterval: number,
@@ -5,6 +5,10 @@
"websocketUrl": "wss://testnet-yoroi-backend.yoroiwallet.com:443",
"name": "testnet"
},
seiza: {
simple: "",
advance: ""
},
"app": {
"walletRefreshInterval": 20000,
"serverStatusRefreshInterval": 20000,
@@ -5,6 +5,10 @@
"websocketUrl": "wss://iohk-mainnet.yoroiwallet.com:443",
"name": "mainnet"
},
seiza: {
simple: "",
advance: ""
},
"app": {
"walletRefreshInterval": 20000,
"serverStatusRefreshInterval": 20000,
@@ -5,6 +5,10 @@
"websocketUrl": "wss://iohk-mainnet.yoroiwallet.com:443",
"name": "shelley-testnet"
},
seiza: {
simple: "",
advance: ""
},
"app": {
"walletRefreshInterval": 20000,
"serverStatusRefreshInterval": 20000,
@@ -5,6 +5,10 @@
"websocketUrl": "wss://stg-yoroi-backend.yoroiwallet.com:443",
"name": "staging"
},
seiza: {
simple: "",
advance: ""
},
"app": {
"walletRefreshInterval": 20000,
"serverStatusRefreshInterval": 20000,
@@ -5,6 +5,10 @@
"websocketUrl": "ws://localhost:8080",
"name": "test"
},
seiza: {
simple: "",
advance: ""
},
"app": {
"walletRefreshInterval": 2000,
"serverStatusRefreshInterval": 2000,
@@ -5,6 +5,10 @@
"websocketUrl": "wss://testnet-yoroi-backend.yoroiwallet.com:443",
"name": "testnet"
},
seiza: {
simple: "",
advance: ""
},
"app": {
"walletRefreshInterval": 20000,
"serverStatusRefreshInterval": 20000,

0 comments on commit ab80344

Please sign in to comment.
You can’t perform that action at this time.