diff --git a/ui/src/components/use-glow-hover/glow-hover-effect.ts b/ui/src/components/use-glow-hover/glow-hover-effect.ts index 5115fd027..5c1870507 100644 --- a/ui/src/components/use-glow-hover/glow-hover-effect.ts +++ b/ui/src/components/use-glow-hover/glow-hover-effect.ts @@ -13,14 +13,14 @@ export type GlowHoverOptions = { enableBurst?: boolean; } & ( | { - preset: keyof typeof presets; - lightColor?: string; -} + preset: keyof typeof presets; + lightColor?: string; + } | { - preset?: undefined; - lightColor: string; -} - ); + preset?: undefined; + lightColor: string; + } +); type Coords = { x: number; @@ -263,4 +263,4 @@ export const glowHoverEffect = (el: HTMLElement, { preset, ...options }: GlowHov resizeObserver.disconnect(); } }; -}; \ No newline at end of file +}; diff --git a/ui/src/components/use-glow-hover/linear-animation.ts b/ui/src/components/use-glow-hover/linear-animation.ts index 08fb57bc4..4f2106f89 100644 --- a/ui/src/components/use-glow-hover/linear-animation.ts +++ b/ui/src/components/use-glow-hover/linear-animation.ts @@ -8,11 +8,11 @@ interface LinearAnimationParams { } export const linearAnimation = ({ - onProgress, - onIdUpdate = () => {}, - time, - initialProgress = 0, - }: LinearAnimationParams) => { + onProgress, + onIdUpdate = () => {}, + time, + initialProgress = 0, +}: LinearAnimationParams) => { if (time === 0) { onProgress(1); onIdUpdate(undefined); @@ -35,4 +35,4 @@ export const linearAnimation = ({ }; const id = window.requestAnimationFrame(step); onIdUpdate(id); -}; \ No newline at end of file +};