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

22 lines
570 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 (
2020-08-21 17:49:13 +02:00
<Page noSideNavigation authPage backout={{ title: __('Create Channel') }}>
<ChannelEdit onDone={() => history.push(`/$/${PAGES.CHANNELS}`)} />
2020-06-29 21:54:07 +02:00
</Page>
);
}
export default withRouter(ChannelNew);