Skip to content

Commit 8a1c008

Browse files
committed
Remove legacy withPositioning
1 parent 1fa37f6 commit 8a1c008

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/internal/wrappers.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ export type PositioningProps = SpacingProps &
2323

2424
export type BoxProps = PositioningProps & SizingProps
2525

26-
// The natural typing causes typescript to error, hence the casts to force it.
27-
export const withPositioning = <P extends object>(
28-
WrappedComponent: React.ElementType<P>
29-
) =>
30-
(styled(WrappedComponent)(
31-
compose(display, spacing, flexbox, griditem)
32-
) as unknown) as React.ComponentType<P & PositioningProps>
33-
3426
export const sizingPropsKeys: Array<keyof SizingProps> = [
3527
'width',
3628
'maxWidth',

0 commit comments

Comments
 (0)