Skip to content

Commit

Permalink
fix: r18 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Dec 6, 2024
1 parent f2aec70 commit e2e62c9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/drawer/src/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const DrawerContainer = ({
animate="visible"
variants={overlay}
transition={{ duration: 0.15 }}
/* @ts-expect-error framer */
/* @ts-ignore framer */
role="presentation"
className={styles.overlay}
onMouseDown={handleOverlayClick}
Expand All @@ -140,7 +140,7 @@ const DrawerContainer = ({
initial="hidden"
animate="visible"
variants={slideRight}
/* @ts-expect-error framer */
/* @ts-ignore framer */
role="dialog"
aria-labelledby={DRAWER_LABELLED_BY}
aria-describedby={DRAWER_LABELLED_BY}
Expand Down
2 changes: 1 addition & 1 deletion packages/dropdown/__tests__/Dropdown.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RefObject } from 'react';
import type { RefObject } from '@react-types/shared';

import { Menu, MenuItem } from '@launchpad-ui/menu';
import { useRef } from 'react';
Expand Down
1 change: 1 addition & 0 deletions packages/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"react-dom": "^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@react-types/shared": "3.26.0",
"react": "19.0.0",
"react-dom": "19.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/modal/src/ModalContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const ModalContainer = ({
animate="visible"
variants={overlay}
transition={{ duration: 0.15 }}
/* @ts-expect-error framer */
/* @ts-ignore framer */
role="presentation"
className={styles.overlay}
data-test-id="modal-overlay"
Expand All @@ -146,7 +146,7 @@ const ModalContainer = ({
initial="hidden"
animate="visible"
variants={isDesktopViewport ? transitions.desktopPop : transitions.mobileSlideUp}
/* @ts-expect-error framer */
/* @ts-ignore framer */
role="dialog"
aria-labelledby={MODAL_LABELLED_BY}
aria-describedby={MODAL_DESCRIBED_BY}
Expand Down
2 changes: 1 addition & 1 deletion packages/navigation/src/NavigationContext.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RefObject } from 'react';
import type { RefObject } from '@react-types/shared';

import { createContext, useContext } from 'react';

Expand Down
4 changes: 2 additions & 2 deletions packages/popover/src/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const Popover = ({
return;
}, []);
const arrowRef = useRef<HTMLDivElement>(null);
const timeoutRef = useRef<ReturnType<typeof setTimeout>>(null);
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
const optionsRef = useRef<Partial<ComputePositionConfig>>({});
const popoverId = useRef(`popover-${useId()}`);

Expand Down Expand Up @@ -385,7 +385,7 @@ const Popover = ({
transition={{ duration: 0.15 }}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
/* @ts-expect-error framer */
/* @ts-ignore framer */
className={cx(
styles['Popover-content'],
restrictWidth && styles['Popover-content--restrictWidth'],
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e2e62c9

Please sign in to comment.