Skip to content

Commit

Permalink
fix(fuselage): Correct withBoxStyling return type (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Mar 31, 2022
1 parent 0002070 commit 6f31ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fuselage/src/components/Box/withBoxStyling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useStylingProps } from './useStylingProps';

export const withBoxStyling = <TProps>(
component: ComponentType<TProps>
): ComponentType<TProps> => {
): ComponentType<TProps & Partial<StylingProps>> => {
const WithBoxStyling = (props: TProps & Partial<StylingProps>) => {
useStyleSheet();
const propsWithoutStylingProps = useStylingProps(props);
Expand Down

0 comments on commit 6f31ff3

Please sign in to comment.