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 (
|
|
|
|
<Page
|
|
|
|
noSideNavigation
|
2020-07-02 18:18:59 +02:00
|
|
|
backout={{ backFunction: () => history.goBack(), title: __('Create Channel') }}
|
2020-06-29 21:54:07 +02:00
|
|
|
className="main--auth-page"
|
|
|
|
>
|
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);
|