split constants files to match actions/reducers

This commit is contained in:
bill bittner 2018-01-24 11:24:49 -08:00
parent 838eb852d9
commit 39a1308080
9 changed files with 8 additions and 12 deletions

View file

@ -1,4 +1,4 @@
import * as actions from 'constants/action_types'; import * as actions from 'constants/channel_action_types';
// export action creators // export action creators

View file

@ -1,4 +1,4 @@
import * as actions from 'constants/action_types'; import * as actions from 'constants/publish_action_types';
// export action creators // export action creators
export function selectFile (file) { export function selectFile (file) {

View file

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import ProgressBar from 'components/ProgressBar'; import ProgressBar from 'components/ProgressBar';
import * as publishStates from 'constants/publishing_states'; import * as publishStates from 'constants/publish_claim_states';
function PublishStatus ({ status, message }) { function PublishStatus ({ status, message }) {
return ( return (

View file

@ -0,0 +1 @@
export const CHANNEL_UPDATE = 'CHANNEL_UPDATE';

View file

@ -1,7 +1,3 @@
// channel actions
export const CHANNEL_UPDATE = 'CHANNEL_UPDATE';
// publish actions
export const FILE_SELECTED = 'FILE_SELECTED'; export const FILE_SELECTED = 'FILE_SELECTED';
export const FILE_CLEAR = 'FILE_CLEAR'; export const FILE_CLEAR = 'FILE_CLEAR';
export const METADATA_UPDATE = 'METADATA_UPDATE'; export const METADATA_UPDATE = 'METADATA_UPDATE';

View file

@ -5,7 +5,7 @@ import PublishUrlInput from 'containers/PublishUrlInput';
import PublishThumbnailInput from 'containers/PublishThumbnailInput'; import PublishThumbnailInput from 'containers/PublishThumbnailInput';
import PublishMetadataInputs from 'containers/PublishMetadataInputs'; import PublishMetadataInputs from 'containers/PublishMetadataInputs';
import ChannelSelect from 'containers/ChannelSelect'; import ChannelSelect from 'containers/ChannelSelect';
import * as publishStates from 'constants/publishing_states'; import * as publishStates from 'constants/publish_claim_states';
class PublishForm extends React.Component { class PublishForm extends React.Component {
constructor (props) { constructor (props) {

View file

@ -1,4 +1,4 @@
import * as actions from 'constants/action_types'; import * as actions from 'constants/channel_action_types';
const initialState = { const initialState = {
loggedInChannel: { loggedInChannel: {

View file

@ -1,9 +1,8 @@
import * as actions from 'constants/action_types'; import * as actions from 'constants/publish_action_types';
import * as channelSelectStates from 'constants/channel_select_states';
const initialState = { const initialState = {
publishInChannel : false, publishInChannel : false,
selectedChannel : channelSelectStates.LOGIN, selectedChannel : null,
showMetadataInputs: false, showMetadataInputs: false,
status : { status : {
status : null, status : null,