Skip to content

Commit

Permalink
task(): Change fragement to div drawer (#1538)
Browse files Browse the repository at this point in the history
* task(): Change fragement to div drawer

* Rush change
  • Loading branch information
coolestKev authored Dec 3, 2024
1 parent 051218e commit 1e915c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "pcln-design-system",
"comment": "Change fragment to div to bypass type errors",
"type": "minor"
}
],
"packageName": "pcln-design-system"
}
2 changes: 1 addition & 1 deletion packages/core/src/Drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Drawer: React.FC<DrawerProps> = ({
}) => {
const { boxShadow, onScrollHandler } = useScrollWithShadow()
const { snapPosition, handleSnap } = useSnap(snapHeights)
const SnapContainer = snapHeights ? motion.div : React.Fragment
const SnapContainer = snapHeights ? motion.div : 'div'

return (
<SnapContainer
Expand Down

0 comments on commit 1e915c3

Please sign in to comment.