fix(SW-216): Fixes after PR
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useRef, useState } from "react"
|
||||
|
||||
const useScrollShadows = () => {
|
||||
const containerRef = useRef<HTMLDivElement | null>(null)
|
||||
export default function useScrollShadows<T extends HTMLElement>() {
|
||||
const containerRef = useRef<T>(null)
|
||||
const [showLeftShadow, setShowLeftShadow] = useState<boolean>(false)
|
||||
const [showRightShadow, setShowRightShadow] = useState<boolean>(false)
|
||||
|
||||
@@ -32,5 +32,3 @@ const useScrollShadows = () => {
|
||||
|
||||
return { containerRef, showLeftShadow, showRightShadow }
|
||||
}
|
||||
|
||||
export default useScrollShadows
|
||||
|
||||
Reference in New Issue
Block a user