diff --git a/components/DiffView.tsx b/components/DiffView.tsx index ba3b48db4..1e1ae8f7e 100644 --- a/components/DiffView.tsx +++ b/components/DiffView.tsx @@ -89,7 +89,7 @@ const DiffView: React.FC<{ if (!change.isDelete) newValue.push(change.content) }) }) - const syntaxHighlight = (str: string, n: number): any => { + const syntaxHighlight = (str: string, n: number) => { const highlighted = Prism.highlight( str, Prism.languages[extension], diff --git a/components/ReviewCard.tsx b/components/ReviewCard.tsx index 9123ed251..2eba6f9ee 100644 --- a/components/ReviewCard.tsx +++ b/components/ReviewCard.tsx @@ -60,7 +60,7 @@ const ReviewButtons: React.FC<{ const [addComment] = useAddCommentMutation() const [accept] = useMutation(ACCEPT_SUBMISSION) const [reject] = useMutation(REJECT_SUBMISSION) - const reviewSubmission = (review: any) => async () => { + const reviewSubmission = (review: typeof accept) => async () => { await review({ variables: { submissionId: submissionId,