lbry-desktop/ui/page/channelNew/view.jsx
Sean Yesmunt 19fb7d7f06 new layout 🕺
2020-09-29 17:12:32 -04:00

21 lines
570 B
JavaScript

// @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';
type Props = {
history: { push: string => void, goBack: () => void },
};
function ChannelNew(props: Props) {
const { history } = props;
return (
<Page noSideNavigation authPage backout={{ title: __('Create Channel') }}>
<ChannelEdit onDone={() => history.push(`/$/${PAGES.CHANNELS}`)} />
</Page>
);
}
export default withRouter(ChannelNew);