We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa37f6 commit 8a1c008Copy full SHA for 8a1c008
src/internal/wrappers.tsx
@@ -23,14 +23,6 @@ export type PositioningProps = SpacingProps &
23
24
export type BoxProps = PositioningProps & SizingProps
25
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
-
34
export const sizingPropsKeys: Array<keyof SizingProps> = [
35
'width',
36
'maxWidth',
0 commit comments