Modal repost #7341

Merged
bradley-ray merged 7 commits from modal-repost into master 2021-12-12 07:03:00 +01:00
Showing only changes of commit 856ec3cd3b - Show all commits

View file

@ -2,6 +2,7 @@
import React from 'react';
import { Modal } from 'modal/modal';
import RepostCreate from 'component/repostCreate';
import Card from 'component/common/card';
type Props = {
closeModal: () => void,
@ -19,7 +20,10 @@ class ModalRepost extends React.PureComponent<Props> {
return (
<Modal onAborted={closeModal} isOpen type="card">
<RepostCreate uri={uri} name={name} onCancel={closeModal} contentUri={contentUri} setContentUri={setContentUri} repostUri={repostUri} setRepostUri={setRepostUri} />
<Card
title={__('Repost')}
actions={<RepostCreate isModal uri={uri} name={name} onCancel={closeModal} contentUri={contentUri} setContentUri={setContentUri} repostUri={repostUri} setRepostUri={setRepostUri} />}
/>
</Modal>
);
}