lbry-desktop/ui/page/channelNew/view.jsx

26 lines
650 B
React
Raw Normal View History

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';
import * as PAGES from 'constants/pages';
2020-06-29 21:54:07 +02:00
type Props = {
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"
>
<ChannelEdit onDone={() => history.push(`/$/${PAGES.CHANNELS}`)} />
2020-06-29 21:54:07 +02:00
</Page>
);
}
export default withRouter(ChannelNew);