Skip to content

Commit

Permalink
Added description to the @ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
adi790u committed Oct 4, 2023
1 parent 983ca76 commit 0a442c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/timeline/CarouselSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Carousel({ children }: { children: React.ReactNode }) {
<div
className="card-container"
style={{
//@ts-expect-error
//@ts-expect-error: TypeScript may not recognize these custom properties
"--active": i === active ? 1 : 0,
"--offset": (active - i) / 5,
"--direction": Math.sign(active - i),
Expand Down

0 comments on commit 0a442c7

Please sign in to comment.