Skip to content

Commit

Permalink
fix(Circle): remove format
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilotager committed Aug 18, 2024
1 parent 7262f38 commit 2be7dd4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/circle/circle.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { useEffect, useState } from "react"
import { cancelRaf, raf } from "../utils/raf"
import { useToRef } from "../utils/state"

function format(rate: number) {
return Math.min(Math.max(rate, 0), 100)
}

export function useAnimatePercent(percentProp: number, speed: number) {
const [percent, setPercent] = useState(percentProp)
const currentRateRef = useToRef(percent)
Expand Down

0 comments on commit 2be7dd4

Please sign in to comment.