2020-06-29 21:54:07 +02:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import ChannelEdit from 'component/channelEdit';
|
|
|
|
import Page from 'component/page';
|
|
|
|
import { withRouter } from 'react-router';
|
2020-07-03 00:14:40 +02:00
|
|
|
import * as PAGES from 'constants/pages';
|
2020-06-29 21:54:07 +02:00
|
|
|
|
|
|
|
type Props = {
|
2020-07-03 00:14:40 +02:00
|
|
|
history: { push: string => void, goBack: () => void },
|
2020-06-29 21:54:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
function ChannelNew(props: Props) {
|
|
|
|
const { history } = props;
|
|
|
|
return (
|
2020-08-21 17:49:13 +02:00
|
|
|
<Page noSideNavigation authPage backout={{ title: __('Create Channel') }}>
|
2020-07-03 00:14:40 +02:00
|
|
|
<ChannelEdit onDone={() => history.push(`/$/${PAGES.CHANNELS}`)} />
|
2020-06-29 21:54:07 +02:00
|
|
|
</Page>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default withRouter(ChannelNew);
|