fix(admin-ui): Lint all UI files (#3459)
This commit is contained in:
committed by
GitHub
parent
55febef7f1
commit
ad7d7fcd51
@@ -7,7 +7,7 @@ type useScrollProps = {
|
||||
export const useScroll = ({ threshold = 0 }: useScrollProps) => {
|
||||
const [isScrolled, setIsScrolled] = useState(false)
|
||||
|
||||
const scrollListener = e => {
|
||||
const scrollListener = (e) => {
|
||||
const currentScrollY = e.target.scrollTop
|
||||
if (currentScrollY > threshold) {
|
||||
setIsScrolled(true)
|
||||
|
||||
Reference in New Issue
Block a user