Skip to content

Commit

Permalink
Fix another HoC OuterProps issue
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Aug 1, 2023
1 parent 5f97929 commit 881de10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import StepperLoader from '../../components/stepper-loader';
import type { OnboardSelect } from '@automattic/data-stores';

const withGlobalStylesProvider = createHigherOrderComponent(
< OuterProps, >( InnerComponent: React.ComponentType< OuterProps > ) => {
< OuterProps extends object >( InnerComponent: React.ComponentType< OuterProps > ) => {
return ( props: OuterProps ) => {
const selectedDesign = useSelect(
( select ) => ( select( ONBOARD_STORE ) as OnboardSelect ).getSelectedDesign(),
Expand Down

0 comments on commit 881de10

Please sign in to comment.