Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
ssandino authored and actions-user committed Jan 14, 2025
1 parent 5dd5de4 commit 0484469
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions ui/src/components/use-glow-hover/glow-hover-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -263,4 +263,4 @@ export const glowHoverEffect = (el: HTMLElement, { preset, ...options }: GlowHov
resizeObserver.disconnect();
}
};
};
};
12 changes: 6 additions & 6 deletions ui/src/components/use-glow-hover/linear-animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -35,4 +35,4 @@ export const linearAnimation = ({
};
const id = window.requestAnimationFrame(step);
onIdUpdate(id);
};
};

0 comments on commit 0484469

Please sign in to comment.