Skip to content

Commit de64ded

Browse files
committed
chore: remove ts-expect-error comments
1 parent 664539f commit de64ded

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

packages/workshop-app/app/routes/_app+/_layout.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ function NavigationExerciseListItem({
503503
return (
504504
<motion.li
505505
variants={itemVariants}
506-
// @ts-expect-error framer-motion + latest typescript types has issues
507506
className={cn(
508507
// add gap of 3 to children, but using padding so the progress extends through the whole height
509508
'py-[6px] first:pt-3 last:pb-3',
@@ -525,7 +524,6 @@ function NavigationExerciseStepListItem({
525524
return (
526525
<motion.li
527526
variants={itemVariants}
528-
// @ts-expect-error framer-motion + latest typescript types has issues
529527
className={cn(
530528
// add gap of 3 to children, but using padding so the progress extends through the whole height
531529
'py-[6px] first:pt-3 last:pb-3',
@@ -582,7 +580,6 @@ function MobileNavigation({
582580
/>
583581
{isMenuOpened && (
584582
<motion.div
585-
// @ts-expect-error framer-motion + latest typescript types has issues
586583
className="flex w-full flex-grow flex-col justify-between overflow-x-auto p-6 scrollbar-thin scrollbar-thumb-scrollbar"
587584
initial={{ opacity: 0 }}
588585
animate={{ opacity: 1 }}
@@ -591,7 +588,6 @@ function MobileNavigation({
591588
variants={listVariants}
592589
initial="hidden"
593590
animate="visible"
594-
// @ts-expect-error framer-motion + latest typescript types has issues
595591
className="flex flex-col"
596592
>
597593
<span>
@@ -650,7 +646,6 @@ function MobileNavigation({
650646
variants={listVariants}
651647
initial="hidden"
652648
animate="visible"
653-
// @ts-expect-error framer-motion + latest typescript types has issues
654649
className="ml-4 mt-2 flex flex-col"
655650
>
656651
<NavigationExerciseStepListItem
@@ -845,7 +840,6 @@ function MobileNavigation({
845840
)}
846841
{isMenuOpened ? (
847842
<motion.div
848-
// @ts-expect-error framer-motion + latest typescript types has issues
849843
className="flex items-center whitespace-nowrap"
850844
initial={{ opacity: 0 }}
851845
animate={{ opacity: 1 }}
@@ -873,7 +867,6 @@ function MobileNavigation({
873867
<Icon name="FastForward" className="flex-shrink-0" size="md" />
874868
{isMenuOpened ? (
875869
<motion.div
876-
// @ts-expect-error framer-motion + latest typescript types has issues
877870
className="flex items-center whitespace-nowrap"
878871
initial={{ opacity: 0 }}
879872
animate={{ opacity: 1 }}
@@ -972,7 +965,6 @@ function Navigation({
972965
{isMenuOpened && (
973966
<motion.div
974967
style={{ width: OPENED_MENU_WIDTH }}
975-
// @ts-expect-error framer-motion + latest typescript types has issues
976968
className="flex flex-grow flex-col justify-between overflow-y-auto p-6 scrollbar-thin scrollbar-thumb-scrollbar"
977969
initial={{ opacity: 0 }}
978970
animate={{ opacity: 1 }}
@@ -981,7 +973,6 @@ function Navigation({
981973
variants={listVariants}
982974
initial="hidden"
983975
animate="visible"
984-
// @ts-expect-error framer-motion + latest typescript types has issues
985976
className="flex flex-col"
986977
>
987978
<span>
@@ -1040,7 +1031,6 @@ function Navigation({
10401031
variants={listVariants}
10411032
initial="hidden"
10421033
animate="visible"
1043-
// @ts-expect-error framer-motion + latest typescript types has issues
10441034
className="ml-4 mt-2 flex flex-col"
10451035
>
10461036
<NavigationExerciseStepListItem
@@ -1252,7 +1242,6 @@ function Navigation({
12521242
)}
12531243
{isMenuOpened ? (
12541244
<motion.div
1255-
// @ts-expect-error framer-motion + latest typescript types has issues
12561245
className="flex items-center whitespace-nowrap"
12571246
initial={{ opacity: 0 }}
12581247
animate={{ opacity: 1 }}
@@ -1280,7 +1269,6 @@ function Navigation({
12801269
<Icon name="FastForward" className="flex-shrink-0" size="md" />
12811270
{isMenuOpened ? (
12821271
<motion.div
1283-
// @ts-expect-error framer-motion + latest typescript types has issues
12841272
className="flex items-center whitespace-nowrap"
12851273
initial={{ opacity: 0 }}
12861274
animate={{ opacity: 1 }}
@@ -1390,7 +1378,6 @@ function NavToggle({
13901378
transition={{ delay: 0.2 }}
13911379
initial={{ opacity: 0, y: 5 }}
13921380
animate={{ opacity: 1, y: 0 }}
1393-
// @ts-expect-error framer-motion + latest typescript types has issues
13941381
className="absolute right-5 whitespace-nowrap font-mono text-sm uppercase"
13951382
>
13961383
<Link to="/">{title}</Link>

packages/workshop-app/app/routes/progress.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ export function ProgressToggle({
340340

341341
<motion.button
342342
ref={buttonRef}
343-
// @ts-expect-error framer-motion + latest typescript types has issues
344343
onClick={() => {
345344
setStartAnimation(!optimisticCompleted)
346345
}}
@@ -354,7 +353,6 @@ export function ProgressToggle({
354353
{startAnimation ? (
355354
<motion.div
356355
ref={animationRef}
357-
// @ts-expect-error framer-motion + latest typescript types has issues
358356
className="absolute right-0 h-20 w-20 rounded-full bg-foreground/20"
359357
initial={{
360358
scale: 0.5,
@@ -372,7 +370,6 @@ export function ProgressToggle({
372370
) : null}
373371
<motion.div
374372
aria-hidden
375-
// @ts-expect-error framer-motion + latest typescript types has issues
376373
className={clsx(
377374
'relative flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border transition',
378375
{

0 commit comments

Comments
 (0)