Misc fixes after rebase

This commit is contained in:
Anthony Laibe 2018-08-14 11:09:13 +01:00 committed by Iuri Matias
parent e2615e2def
commit 2c4f1e070d
4 changed files with 11 additions and 10 deletions

View File

@ -147,6 +147,14 @@ export const ensRecords = {
failure: (error) => action(ENS_RECORDS[FAILURE], {error}) failure: (error) => action(ENS_RECORDS[FAILURE], {error})
}; };
export const FIDDLE = createRequestTypes('FIDDLE');
export const fiddle = {
request: (codeToCompile) => action(FIDDLE[REQUEST], {codeToCompile}),
success: (fiddle) => action(FIDDLE[SUCCESS], {fiddles: [fiddle]}),
failure: (error) => action(FIDDLE[FAILURE], {error})
};
// Web Socket // Web Socket
export const WATCH_NEW_PROCESS_LOGS = 'WATCH_NEW_PROCESS_LOGS'; export const WATCH_NEW_PROCESS_LOGS = 'WATCH_NEW_PROCESS_LOGS';
export const WATCH_NEW_CONTRACT_LOGS = 'WATCH_NEW_CONTRACT_LOGS'; export const WATCH_NEW_CONTRACT_LOGS = 'WATCH_NEW_CONTRACT_LOGS';
@ -171,11 +179,4 @@ export function initBlockHeader(){
}; };
} }
export const FIDDLE = createRequestTypes('FIDDLE');
export const fiddle = {
request: (codeToCompile) => action(FIDDLE[REQUEST], {codeToCompile}),
success: (fiddle) => action(FIDDLE[SUCCESS], {fiddle}),
failure: (error) => action(FIDDLE[FAILURE], {error})
};

View File

@ -42,7 +42,7 @@ function mapStateToProps(state) {
} }
TransactionsContainer.propTypes = { TransactionsContainer.propTypes = {
transactions: PropTypes.object, transactions: PropTypes.arrayOf(PropTypes.object),
fetchTransactions: PropTypes.func, fetchTransactions: PropTypes.func,
error: PropTypes.string, error: PropTypes.string,
loading: PropTypes.bool loading: PropTypes.bool

View File

@ -16,7 +16,7 @@ const entitiesDefaultState = {
commands: [], commands: [],
messages: [], messages: [],
messageChannels: [], messageChannels: [],
fiddle: null, fiddles: [],
versions: [], versions: [],
plugins: [], plugins: [],
ensRecords: [] ensRecords: []

View File

@ -91,7 +91,7 @@ export function getMessages(state) {
} }
export function getFiddle(state) { export function getFiddle(state) {
return state.entities.fiddle; return state.entities.fiddles[0];
} }
export function getEnsRecords(state) { export function getEnsRecords(state) {