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

22 lines
589 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 backout={{ title: __('Create Channel') }} className="main--auth-page">
<ChannelEdit onDone={() => history.push(`/$/${PAGES.CHANNELS}`)} />
2020-06-29 21:54:07 +02:00
</Page>
);
}
export default withRouter(ChannelNew);