mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix ts errors
This commit is contained in:
@@ -70,8 +70,12 @@ const ModQueueRow = ({ comment, showBoardColumn = false }: ModQueueRowProps) =>
|
|||||||
commentCid: cid,
|
commentCid: cid,
|
||||||
subplebbitAddress,
|
subplebbitAddress,
|
||||||
commentModeration: { approved: true },
|
commentModeration: { approved: true },
|
||||||
onChallenge: (...args: any) => addChallenge([...args, comment]),
|
onChallenge: async (...args: any) => {
|
||||||
onChallengeVerification: alertChallengeVerificationFailed,
|
addChallenge([...args, comment]);
|
||||||
|
},
|
||||||
|
onChallengeVerification: async (challengeVerification, comment) => {
|
||||||
|
alertChallengeVerificationFailed(challengeVerification, comment);
|
||||||
|
},
|
||||||
onError: (error: Error) => {
|
onError: (error: Error) => {
|
||||||
console.error('Approve failed:', error);
|
console.error('Approve failed:', error);
|
||||||
},
|
},
|
||||||
@@ -85,8 +89,12 @@ const ModQueueRow = ({ comment, showBoardColumn = false }: ModQueueRowProps) =>
|
|||||||
commentCid: cid,
|
commentCid: cid,
|
||||||
subplebbitAddress,
|
subplebbitAddress,
|
||||||
commentModeration: { removed: true },
|
commentModeration: { removed: true },
|
||||||
onChallenge: (...args: any) => addChallenge([...args, comment]),
|
onChallenge: async (...args: any) => {
|
||||||
onChallengeVerification: alertChallengeVerificationFailed,
|
addChallenge([...args, comment]);
|
||||||
|
},
|
||||||
|
onChallengeVerification: async (challengeVerification, comment) => {
|
||||||
|
alertChallengeVerificationFailed(challengeVerification, comment);
|
||||||
|
},
|
||||||
onError: (error: Error) => {
|
onError: (error: Error) => {
|
||||||
console.error('Reject failed:', error);
|
console.error('Reject failed:', error);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user