Skip to content

Commit

Permalink
Remove unused isHovered prop from Timer and simplify TimeDisplay comp…
Browse files Browse the repository at this point in the history
…onent
  • Loading branch information
ethn1ee committed Dec 9, 2024
1 parent f4d3ce8 commit 9776605
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/app/components/timer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const Timer = () => {
key={unit}
unit={unit}
value={value}
isHovered={isHovered}
/>
))}
</div>
Expand Down Expand Up @@ -110,15 +109,15 @@ const Timer = () => {
);
};

const TimeDisplay = ({ unit, value, isHovered }) => {
const delay =
unit === "days"
? 0.3
: unit === "hours"
? 0.35
: unit === "minutes"
? 0.4
: 0.45;
const TimeDisplay = ({ unit, value }) => {
// const delay =
// unit === "days"
// ? 0.3
// : unit === "hours"
// ? 0.35
// : unit === "minutes"
// ? 0.4
// : 0.45;

return (
<>
Expand Down

0 comments on commit 9776605

Please sign in to comment.