React/Redux - publish component #323
|
@ -152,6 +152,7 @@ const mapDispatchToProps = dispatch => {
|
||||||
return {
|
return {
|
||||||
onFileSelect: (file) => {
|
onFileSelect: (file) => {
|
||||||
dispatch(selectFile(file));
|
dispatch(selectFile(file));
|
||||||
|
dispatch(updateError('publishSubmit', null));
|
||||||
},
|
},
|
||||||
onFileError: (value) => {
|
onFileError: (value) => {
|
||||||
dispatch(updateError('file', value));
|
dispatch(updateError('file', value));
|
||||||
|
|
|
@ -125,13 +125,13 @@ class PublishForm extends React.Component {
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
const metadata = that.createMetadata();
|
const metadata = that.createMetadata();
|
||||||
// publish the claim
|
// publish the claim
|
||||||
return that.makePublishRequest(this.props.file, metadata);
|
return that.makePublishRequest(that.props.file, metadata);
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
that.props.onPublishStatusChange('publish request made');
|
that.props.onPublishStatusChange('publish request made');
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
that.props.onPublishRequestError(error.message);
|
that.props.onPublishSubmitError(error.message);
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
render () {
|
render () {
|
||||||
|
@ -174,8 +174,8 @@ class PublishForm extends React.Component {
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
<PublishMetadataInputs />
|
<PublishMetadataInputs />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="row row--padded row--wide align-content-center">
|
<div className="row row--padded row--no-top row--wide align-content-center">
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
<p className="info-message-placeholder info-message--failure">{this.props.publishRequestError}</p>
|
<p className="info-message-placeholder info-message--failure">{this.props.publishSubmitError}</p>
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
<button id="publish-submit" className="button--primary button--large" onClick={this.publish}>Publish</button>
|
<button id="publish-submit" className="button--primary button--large" onClick={this.publish}>Publish</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -196,18 +196,18 @@ class PublishForm extends React.Component {
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
|
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = state => {
|
||||||
return {
|
return {
|
||||||
file : state.file,
|
file : state.file,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
claim : state.claim,
|
claim : state.claim,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
title : state.metadata.title,
|
title : state.metadata.title,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
thumbnail : state.metadata.thumbnail,
|
thumbnail : state.metadata.thumbnail,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
description : state.metadata.description,
|
description : state.metadata.description,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
license : state.metadata.license,
|
license : state.metadata.license,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
nsfw : state.metadata.nsfw,
|
nsfw : state.metadata.nsfw,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
loggedInChannel : state.loggedInChannel,
|
loggedInChannel : state.loggedInChannel,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
publishInChannel : state.publishInChannel,
|
publishInChannel : state.publishInChannel,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
fileError : state.error.file,
|
fileError : state.error.file,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
urlError : state.error.url,
|
urlError : state.error.url,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
publishRequestError: state.error.publishRequest,
|
publishSubmitError: state.error.publishSubmit,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -225,8 +225,8 @@ const mapDispatchToProps = dispatch => {
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
onPublishStatusChange: (status, message) => {
|
onPublishStatusChange: (status, message) => {
|
||||||
dispatch(updatePublishStatus(status, message));
|
dispatch(updatePublishStatus(status, message));
|
||||||
},
|
},
|
||||||
onPublishRequestError: (value) => {
|
onPublishSubmitError: (value) => {
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
dispatch(updateError('publishRequest', value));
|
dispatch(updateError('publishSubmit', value));
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -243,12 +243,12 @@ PublishForm.propTypes = {
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
publishInChannel : PropTypes.bool.isRequired,
|
publishInChannel : PropTypes.bool.isRequired,
|
||||||
fileError : PropTypes.string,
|
fileError : PropTypes.string,
|
||||||
urlError : PropTypes.string,
|
urlError : PropTypes.string,
|
||||||
publishRequestError : PropTypes.string,
|
publishSubmitError : PropTypes.string,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
onFileSelect : PropTypes.func.isRequired,
|
onFileSelect : PropTypes.func.isRequired,
|
||||||
onFileClear : PropTypes.func.isRequired,
|
onFileClear : PropTypes.func.isRequired,
|
||||||
onChannelLogin : PropTypes.func.isRequired,
|
onChannelLogin : PropTypes.func.isRequired,
|
||||||
onPublishStatusChange: PropTypes.func.isRequired,
|
onPublishStatusChange: PropTypes.func.isRequired,
|
||||||
onPublishRequestError: PropTypes.func.isRequired,
|
onPublishSubmitError: PropTypes.func.isRequired,
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default connect(mapStateToProps, mapDispatchToProps)(PublishForm);
|
export default connect(mapStateToProps, mapDispatchToProps)(PublishForm);
|
||||||
|
|
||||||
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
![]() These consts need to be shared across files These consts need to be shared across files
![]() I suspect this shouldn't be necessary with addition of Redux I suspect this shouldn't be necessary with addition of Redux
|
|
@ -45,42 +45,39 @@ class MetadataInputs extends React.Component {
|
||||||
}
|
}
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div id="publish-details" className="row row--padded row--no-top row--wide">
|
||||||
<div className="column column--10">
|
<a className="label link--primary" id="publish-details-toggle" href="#" onClick={this.toggleShowInputs}>{this.state.showInputs ? '[less]' : '[more]'}</a>
|
||||||
<a className="label link--primary" id="publish-details-toggle" href="#" onClick={this.toggleShowInputs}>{this.state.showInputs ? '[less]' : '[more]'}</a>
|
{this.state.showInputs && (
|
||||||
</div>
|
<div>
|
||||||
{this.state.showInputs && (
|
<div className="row row--no-top">
|
||||||
<div id="publish-details" className="row row--padded row--wide">
|
<div className="column column--3 column--med-10 align-content-top">
|
||||||
|
<label htmlFor="publish-license" className="label">Description:</label>
|
||||||
<div className="row row--no-top">
|
</div><div className="column column--7 column--sml-10">
|
||||||
<div className="column column--3 column--med-10 align-content-top">
|
<textarea rows="1" id="publish-description" className="textarea textarea--primary textarea--full-width" name="description" placeholder="Optional description" value={this.props.description} onChange={this.handleInput} />
|
||||||
<label htmlFor="publish-license" className="label">Description:</label>
|
|
||||||
</div><div className="column column--7 column--sml-10">
|
|
||||||
<textarea rows="1" id="publish-description" className="textarea textarea--primary textarea--full-width" name="description" placeholder="Optional description" value={this.props.description} onChange={this.handleInput} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="row row--no-top">
|
|
||||||
<div className="column column--3 column--med-10">
|
|
||||||
<label htmlFor="publish-license" className="label">License:</label>
|
|
||||||
</div><div className="column column--7 column--sml-10">
|
|
||||||
<select type="text" name="license" id="publish-license" className="select select--primary" onChange={this.handleSelection}>
|
|
||||||
<option value=" ">Unspecified</option>
|
|
||||||
<option value="Public Domain">Public Domain</option>
|
|
||||||
<option value="Creative Commons">Creative Commons</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="row row--no-top">
|
|
||||||
<div className="column column--3">
|
|
||||||
<label htmlFor="publish-nsfw" className="label">Mature:</label>
|
|
||||||
</div><div className="column column--7">
|
|
||||||
<input className="input-checkbox" type="checkbox" id="publish-nsfw" name="nsfw" checked={this.props.nsfw} onChange={this.handleCheck} />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
|
<div className="row row--no-top">
|
||||||
|
<div className="column column--3 column--med-10">
|
||||||
|
<label htmlFor="publish-license" className="label">License:</label>
|
||||||
|
</div><div className="column column--7 column--sml-10">
|
||||||
|
<select type="text" name="license" id="publish-license" className="select select--primary" onChange={this.handleSelection}>
|
||||||
|
<option value=" ">Unspecified</option>
|
||||||
|
<option value="Public Domain">Public Domain</option>
|
||||||
|
<option value="Creative Commons">Creative Commons</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="row row--no-top">
|
||||||
|
<div className="column column--3">
|
||||||
|
<label htmlFor="publish-nsfw" className="label">Mature:</label>
|
||||||
|
</div><div className="column column--7">
|
||||||
|
<input className="input-checkbox" type="checkbox" id="publish-nsfw" name="nsfw" checked={this.props.nsfw} onChange={this.handleCheck} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,13 +53,13 @@ class UrlChooser extends React.Component {
|
||||||
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|||||||
makeGetRequest(`/api/claim-is-available/${claim}`)
|
makeGetRequest(`/api/claim-is-available/${claim}`)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response) {
|
if (response) {
|
||||||
this.props.onUrlError(null);
|
that.props.onUrlError(null);
|
||||||
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|||||||
} else {
|
} else {
|
||||||
this.props.onUrlError('That url has already been claimed');
|
that.props.onUrlError('That url has already been claimed');
|
||||||
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.props.onUrlError(error.message);
|
that.props.onUrlError(error.message);
|
||||||
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
render () {
|
render () {
|
||||||
|
@ -97,6 +97,7 @@ const mapDispatchToProps = dispatch => {
|
||||||
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|||||||
return {
|
return {
|
||||||
onClaimChange: (value) => {
|
onClaimChange: (value) => {
|
||||||
dispatch(updateClaim(value));
|
dispatch(updateClaim(value));
|
||||||
|
dispatch(updateError('publishSubmit', null));
|
||||||
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|||||||
},
|
},
|
||||||
onUrlError: (value) => {
|
onUrlError: (value) => {
|
||||||
dispatch(updateError('url', value));
|
dispatch(updateError('url', value));
|
||||||
|
|
||||||
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
![]() You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|
@ -15,9 +15,9 @@ const initialState = {
|
||||||
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
|
|||||||
message: null,
|
message: null,
|
||||||
},
|
},
|
||||||
error: {
|
error: {
|
||||||
file : null,
|
file : null,
|
||||||
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
|
|||||||
url : null,
|
url : null,
|
||||||
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
|
|||||||
publishRequest: null,
|
publishSubmit: null,
|
||||||
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
|
|||||||
},
|
},
|
||||||
file : null,
|
file : null,
|
||||||
claim : '',
|
claim : '',
|
||||||
|
|
||||||
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
![]()
`import * as`
![]() Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision). Some of these should possibly be renamed or refactored into separate files (or possibly can wait until next refactor/revision).
|
These consts need to be shared across files
I suspect this shouldn't be necessary with addition of Redux