Merge pull request #118 from FedericoLeiva12/fix/react-props-warnings

fix: props format with errors are shown in the console
This commit is contained in:
DarkSky
2022-08-07 18:10:47 +08:00
committed by GitHub
2 changed files with 11 additions and 11 deletions
@@ -9,8 +9,8 @@ export const Logo = ({ color, style, ...props }) => {
> >
<rect width="52" height="52" rx="10" fill="#3E6FDB" /> <rect width="52" height="52" rx="10" fill="#3E6FDB" />
<path <path
fill-rule="evenodd" fillRule="evenodd"
clip-rule="evenodd" clipRule="evenodd"
d="M24.2189 11.4392L14.6321 38.7943H20.2472L26.3453 19.8747L32.4461 38.7943H38.0423L28.454 11.4392H24.2189Z" d="M24.2189 11.4392L14.6321 38.7943H20.2472L26.3453 19.8747L32.4461 38.7943H38.0423L28.454 11.4392H24.2189Z"
fill="white" fill="white"
/> />
@@ -11,15 +11,15 @@ const StyledTabs = styled('div')({
cursor: 'pointer', cursor: 'pointer',
}); });
const StyledDivider = styled(Divider)<{ isActive?: boolean }>( const StyledDivider = styled(Divider, {
({ isActive }) => { shouldForwardProp: (prop: string) => !['isActive'].includes(prop),
return { })<{ isActive?: boolean }>(({ isActive }) => {
flex: 1, return {
backgroundColor: isActive ? '#3E6FDB' : '#ECF1FB', flex: 1,
borderWidth: '2px', backgroundColor: isActive ? '#3E6FDB' : '#ECF1FB',
}; borderWidth: '2px',
} };
); });
const TAB_TITLE = { const TAB_TITLE = {
PAGES: 'pages', PAGES: 'pages',