spee.ch/react/containers/PublishTool/view.jsx

30 lines
928 B
React
Raw Normal View History

import React from 'react';
2018-01-18 00:00:03 +01:00
import Dropzone from 'containers/Dropzone';
2018-03-02 02:16:04 +01:00
import PublishDetails from 'containers/PublishDetails';
import PublishStatus from 'containers/PublishStatus';
2018-01-06 03:26:57 +01:00
class PublishTool extends React.Component {
render () {
if (this.props.disabled) {
return (
<div className='row dropzone--disabled row--tall flex-container--column flex-container--center-center'>
<p className='text--disabled'>Publishing is temporarily disabled.</p>
<p className='text--disabled'>Please check back soon or join our <a className='link--disabled-text' href='https://discord.gg/YjYbwhS'>discord channel</a> for updates.</p>
</div>
);
}
2018-01-12 00:37:32 +01:00
if (this.props.file) {
if (this.props.status) {
return (
2018-03-02 02:16:04 +01:00
<PublishStatus />
2018-01-12 00:37:32 +01:00
);
} else {
2018-03-02 02:16:04 +01:00
return <PublishDetails />;
2018-01-12 00:37:32 +01:00
}
}
return <Dropzone />;
}
};
2018-01-17 19:49:57 +01:00
export default PublishTool;