From 280d03dfc4bfbff190ea699366d56d5e039fa53c Mon Sep 17 00:00:00 2001 From: Alex Totolici <35605914+toto1384@users.noreply.github.com> Date: Fri, 1 Dec 2023 12:23:49 +0200 Subject: [PATCH 1/2] Update index.tsx --- packages/react-sticky-box/src/index.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/react-sticky-box/src/index.tsx b/packages/react-sticky-box/src/index.tsx index 7ab6ccb..c8683ba 100644 --- a/packages/react-sticky-box/src/index.tsx +++ b/packages/react-sticky-box/src/index.tsx @@ -1,4 +1,4 @@ -import {ComponentProps, useEffect, useState} from "react"; +import React, {ComponentProps, useEffect, useState} from "react"; const getScrollParent = (node: HTMLElement) => { let parent: HTMLElement | null = node; @@ -409,11 +409,7 @@ const StickyBox = (props: StickyBoxCompProps) => { const {offsetTop, offsetBottom, bottom, children, className, style} = props; const ref = useStickyBox({offsetTop, offsetBottom, bottom}); - return ( -