Skip to content

Commit

Permalink
fix: fixed type script error
Browse files Browse the repository at this point in the history
  • Loading branch information
md-rehman committed Oct 29, 2021
1 parent 37cf8a3 commit bbedf45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/components/primitives/Hidden/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function Hidden({ children, ...props }: IHiddenProps) {
const { from, till, only, platform, colorMode } = usePropsResolution(
'Hidden',
props,
{},
{
ignoreProps: ['only', 'platform'],
}
Expand Down
12 changes: 6 additions & 6 deletions src/hooks/useThemeProps/usePropsResolution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export function usePropsResolution(
incomingProps: any,
state?: IStateProps,
config?: {
componentTheme: any;
resolveResponsively: Array<string>;
ignoreProps: Array<string>;
componentTheme?: any;
resolveResponsively?: string[];
ignoreProps?: string[];
}
) {
const { theme } = useNativeBase();
Expand All @@ -148,9 +148,9 @@ export const usePropsResolutionWithComponentTheme = (
incomingProps: any,
state?: IStateProps,
config?: {
componentTheme: any;
resolveResponsively: Array<string>;
ignoreProps: Array<string>;
componentTheme?: any;
resolveResponsively?: string[];
ignoreProps?: string[];
}
) => {
const modifiedPropsForSSR = useResponsiveSSRProps(incomingProps);
Expand Down

0 comments on commit bbedf45

Please sign in to comment.