recon commentCreate

This commit is contained in:
zeppi 2021-07-28 10:36:24 -04:00
parent ca81681233
commit 8eaf718a6a

View file

@ -43,8 +43,7 @@ type Props = {
activeChannel: string, activeChannel: string,
activeChannelClaim: ?ChannelClaim, activeChannelClaim: ?ChannelClaim,
bottom: boolean, bottom: boolean,
onSubmit: (string, string) => void, livestream?: boolean,
livestream: boolean,
embed?: boolean, embed?: boolean,
toast: (string) => void, toast: (string) => void,
claimIsMine: boolean, claimIsMine: boolean,
@ -66,11 +65,9 @@ export function CommentCreate(props: Props) {
isReply, isReply,
parentId, parentId,
activeChannelClaim, activeChannelClaim,
onSubmit,
bottom, bottom,
livestream, livestream,
embed, embed,
toast,
claimIsMine, claimIsMine,
sendTip, sendTip,
doToast, doToast,
@ -154,8 +151,6 @@ export function CommentCreate(props: Props) {
const activeChannelName = activeChannelClaim && activeChannelClaim.name; const activeChannelName = activeChannelClaim && activeChannelClaim.name;
const activeChannelId = activeChannelClaim && activeChannelClaim.claim_id; const activeChannelId = activeChannelClaim && activeChannelClaim.claim_id;
console.log(activeChannelClaim);
setIsSubmitting(true); setIsSubmitting(true);
if (activeTab === TAB_LBC) { if (activeTab === TAB_LBC) {
@ -263,10 +258,6 @@ export function CommentCreate(props: Props) {
setIsSupportComment(false); setIsSupportComment(false);
setCommentFailure(false); setCommentFailure(false);
if (onSubmit) {
onSubmit(commentValue, activeChannelClaim.name);
}
if (onDoneReplying) { if (onDoneReplying) {
onDoneReplying(); onDoneReplying();
} }