refactor: unify theme (#1303)

This commit is contained in:
Himself65
2023-03-04 01:36:20 -06:00
committed by GitHub
parent fe0d78b2d6
commit 4e9f0c97a1
43 changed files with 779 additions and 543 deletions

View File

@@ -27,7 +27,7 @@ export const Content = styled('div', {
'width',
'maxWidth',
'align',
].includes(prop);
].includes(prop as string);
},
})<ContentProps>(
({

View File

@@ -45,7 +45,7 @@ export const Wrapper = styled('div', {
'marginLeft',
'marginRight',
'marginBottom',
].includes(prop);
].includes(prop as string);
},
})<WrapperProps>(
({
@@ -90,7 +90,7 @@ export const FlexWrapper = styled(Wrapper, {
'flexDirection',
'flexShrink',
'flexGrow',
].includes(prop);
].includes(prop as string);
},
})<FlexWrapperProps>(
({
@@ -116,7 +116,7 @@ export const FlexWrapper = styled(Wrapper, {
// TODO: Complete me
export const GridWrapper = styled(Wrapper, {
shouldForwardProp: prop => {
return ![''].includes(prop);
return ![''].includes(prop as string);
},
})<WrapperProps>(() => {
return {