Skip to content

Commit

Permalink
remove additional layout group
Browse files Browse the repository at this point in the history
  • Loading branch information
remorses committed Mar 22, 2024
1 parent d1101d0 commit 7444804
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions unframer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"build": "tsc && cp ../README.md ./README.md",
"prepublishOnly": "pnpm build",
"postinstall": "pnpm build",
"download-framer": "tsx scripts/download.ts",
"watch": "tsc -w"
},
Expand Down Expand Up @@ -39,6 +40,7 @@
"license": "",
"peerDependencies": {
"react": "*",
"@types/react": "*",
"react-dom": "*"
},
"dependencies": {
Expand Down
24 changes: 12 additions & 12 deletions unframer/src/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,18 +260,18 @@ export const WithFramerBreakpoints = forwardRef(function WithFramerBreakpoints<
return Object.values(variants).map(({ className, variant }) => {
return (
<div key={variant} className={className}>
<LayoutGroup key={variant} id={id + variant}>
{/* @ts-ignore */}
<Component
ref={ref}
key={variant}
// layoutDependency={id}
// layoutId={id + variant}
// layoutId={breakpointName}
{...rest}
variant={variant as any}
/>
</LayoutGroup>
{/* @ts-ignore */}
<Component
ref={ref}
key={variant}
// LayoutGroup is used internally
layoutId={id + variant}
// layoutDependency={id}
// layoutId={id + variant}
// layoutId={breakpointName}
{...rest}
variant={variant as any}
/>
</div>
)
})
Expand Down

0 comments on commit 7444804

Please sign in to comment.