From 39529169434e28baf4d4ee6c4fe2286e298b95ec Mon Sep 17 00:00:00 2001 From: branhuang Date: Mon, 26 Apr 2021 19:22:31 +0800 Subject: [PATCH] feat: Modify deprecated APIs --- src/Align.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Align.tsx b/src/Align.tsx index e621863..5778b78 100644 --- a/src/Align.tsx +++ b/src/Align.tsx @@ -44,7 +44,7 @@ function getPoint(point: TargetType) { return point; } -const Align: React.RefForwardingComponent = ( +const Align: React.ForwardRefRenderFunction = ( { children, disabled, target, align, onAlign, monitorWindowResize, monitorBufferTime = 0 }, ref, ) => {