From eb5d9b82fa7b87c445e002eb3e04492e9d2c1e1f Mon Sep 17 00:00:00 2001 From: Chi-Hsuan Huang Date: Fri, 20 May 2022 14:33:59 +0800 Subject: [PATCH] Use React.VFC for CustomerEffortScore type instead --- packages/js/customer-effort-score/src/customer-effort-score.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/js/customer-effort-score/src/customer-effort-score.tsx b/packages/js/customer-effort-score/src/customer-effort-score.tsx index dd993713a57..780d192065d 100644 --- a/packages/js/customer-effort-score/src/customer-effort-score.tsx +++ b/packages/js/customer-effort-score/src/customer-effort-score.tsx @@ -36,7 +36,7 @@ type CustomerEffortScoreProps = { * @param {Function} props.onModalShownCallback Function to call when the modal is shown. * @param {Object} props.icon Icon (React component) to be shown on the notice. */ -const CustomerEffortScore: React.FC< CustomerEffortScoreProps > = ( { +const CustomerEffortScore: React.VFC< CustomerEffortScoreProps > = ( { recordScoreCallback, label, onNoticeShownCallback = noop,