React/Redux - publish component #323
9 changed files with 8 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
import * as actions from 'constants/action_types';
|
||||
import * as actions from 'constants/channel_action_types';
|
||||
|
||||
// export action creators
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as actions from 'constants/action_types';
|
||||
import * as actions from 'constants/publish_action_types';
|
||||
|
||||
// export action creators
|
||||
export function selectFile (file) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ProgressBar from 'components/ProgressBar';
|
||||
import * as publishStates from 'constants/publishing_states';
|
||||
import * as publishStates from 'constants/publish_claim_states';
|
||||
|
||||
function PublishStatus ({ status, message }) {
|
||||
return (
|
||||
|
|
1
react/constants/channel_action_types.js
Normal file
1
react/constants/channel_action_types.js
Normal file
|
@ -0,0 +1 @@
|
|||
export const CHANNEL_UPDATE = 'CHANNEL_UPDATE';
|
|
@ -1,7 +1,3 @@
|
|||
// channel actions
|
||||
export const CHANNEL_UPDATE = 'CHANNEL_UPDATE';
|
||||
|
||||
// publish actions
|
||||
export const FILE_SELECTED = 'FILE_SELECTED';
|
||||
export const FILE_CLEAR = 'FILE_CLEAR';
|
||||
export const METADATA_UPDATE = 'METADATA_UPDATE';
|
|
@ -5,7 +5,7 @@ import PublishUrlInput from 'containers/PublishUrlInput';
|
|||
import PublishThumbnailInput from 'containers/PublishThumbnailInput';
|
||||
import PublishMetadataInputs from 'containers/PublishMetadataInputs';
|
||||
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 {
|
||||
constructor (props) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as actions from 'constants/action_types';
|
||||
import * as actions from 'constants/channel_action_types';
|
||||
|
||||
const initialState = {
|
||||
loggedInChannel: {
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import * as actions from 'constants/action_types';
|
||||
import * as channelSelectStates from 'constants/channel_select_states';
|
||||
import * as actions from 'constants/publish_action_types';
|
||||
|
||||
const initialState = {
|
||||
publishInChannel : false,
|
||||
selectedChannel : channelSelectStates.LOGIN,
|
||||
selectedChannel : null,
|
||||
showMetadataInputs: false,
|
||||
status : {
|
||||
status : null,
|
||||
|
|
Loading…
Reference in a new issue