Skip to content

Commit

Permalink
Merge pull request #8 from securityscorecard/ajkl2533@fix-prop-typo
Browse files Browse the repository at this point in the history
fix(provider): fix prop name typo
  • Loading branch information
ajkl2533 authored Dec 1, 2020
2 parents f75f9b7 + 2c29f89 commit 01a306b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/theme/DSProvider/DSProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import { DSProviderProps } from './DSProvider.types';
const DSProvider: React.FC<DSProviderProps> = ({
children,
theme = {},
hasInlcudedGlobalStyles = true,
hasIncludedGlobalStyles = true,
}) => {
const dsTheme = mergeDeepRight(defaultTheme, theme);

return (
<ThemeProvider theme={dsTheme}>
{hasInlcudedGlobalStyles && <GlobalStyles />}
{hasIncludedGlobalStyles && <GlobalStyles />}
{children}
</ThemeProvider>
);
};

DSProvider.propTypes = {
theme: PropTypes.shape({}),
hasInlcudedGlobalStyles: PropTypes.bool,
hasIncludedGlobalStyles: PropTypes.bool,
};

export default DSProvider;
2 changes: 1 addition & 1 deletion src/theme/DSProvider/DSProvider.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export interface DSProviderProps {
theme?: {
[key: string]: unknown;
};
hasInlcudedGlobalStyles?: boolean;
hasIncludedGlobalStyles?: boolean;
}

0 comments on commit 01a306b

Please sign in to comment.