Skip to content

Commit 11c3138

Browse files
committed
fix: use new motion.create
1 parent f30ce0d commit 11c3138

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

package.json

+13
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
"author": "henryzhu.eth",
55
"license": "MIT",
66
"description": "A 📄 sheet is a modal used to replicate an Apple-like sheet experience on the mobile web.",
7+
"keywords": [
8+
"ios",
9+
"web",
10+
"a11y",
11+
"sheet",
12+
"modal",
13+
"dialog",
14+
"animation",
15+
"bottom sheet",
16+
"accessibility",
17+
"react component",
18+
"progressive-web-app"
19+
],
720
"homepage": "https://github.com/sheet-ui/sheet",
821
"repository": {
922
"type": "git",

src/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ const SHEET_MARGINS = {
6262
xs: 540,
6363
} as const;
6464

65-
const MotionModal = motion(
65+
const MotionModal = motion.create(
6666
Modal as ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>
6767
);
6868

69-
const MotionModalOverlay = motion(
69+
const MotionModalOverlay = motion.create(
7070
ModalOverlay as ForwardRefExoticComponent<
7171
ModalOverlayProps & RefAttributes<HTMLDivElement>
7272
>

0 commit comments

Comments
 (0)