Skip to content

Commit

Permalink
Fixed Stack.Item type
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewMusgrave committed Jan 6, 2020
1 parent 9ccfd09 commit eb08021
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Stack/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ export interface StackProps {
distribution?: Distribution;
}

export const Stack: NamedExoticComponent<StackProps> & {
Item: typeof Item;
} = memo(function Stack({
export const Stack = memo(function Stack({
children,
vertical,
spacing,
Expand All @@ -57,6 +55,8 @@ export const Stack: NamedExoticComponent<StackProps> & {
});

return <div className={className}>{itemMarkup}</div>;
});
}) as NamedExoticComponent<StackProps> & {
Item: typeof Item;
};

Stack.Item = Item;

0 comments on commit eb08021

Please sign in to comment.