Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
IPogorelova authored and actions-user committed Jan 13, 2025
1 parent c2773a9 commit d618b55
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ui/src/components/use-glow-hover/use-glow-hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ export const useGlowHover = ({ disabled = false, ...options }: GlowHoverHookOpti
const ref = useRef<HTMLElement>(null);

useEffect(
() =>
!disabled && ref.current
? glowHoverEffect(ref.current, options)
:
() => {},
() => (!disabled && ref.current ? glowHoverEffect(ref.current, options) : () => {}),
[disabled, ...Object.values(options)],
);
return ref;
Expand Down

0 comments on commit d618b55

Please sign in to comment.