lbry-desktop/ui/modal/modalChannelCreate/view.jsx

19 lines
416 B
React
Raw Permalink Normal View History

2019-12-05 23:27:26 +01:00
// @flow
import React from 'react';
2019-12-06 20:42:44 +01:00
import ChannelForm from 'component/channelForm';
2019-12-05 23:27:26 +01:00
import { Modal } from 'modal/modal';
type Props = { doHideModal: () => void };
2019-12-06 20:42:44 +01:00
const ModalChannelCreate = (props: Props) => {
2019-12-05 23:27:26 +01:00
const { doHideModal } = props;
2019-12-06 20:42:44 +01:00
2019-12-05 23:27:26 +01:00
return (
<Modal isOpen type="card" onAborted={doHideModal}>
2019-12-06 20:42:44 +01:00
<ChannelForm onSuccess={doHideModal} />
2019-12-05 23:27:26 +01:00
</Modal>
);
};
2019-12-06 20:42:44 +01:00
export default ModalChannelCreate;