chore: migrate to jsx element (#43707)

This commit is contained in:
RobertoMSousa
2021-10-04 14:46:34 +01:00
committed by GitHub
parent 2ba536d559
commit f5de80dc4f
8 changed files with 218 additions and 232 deletions

View File

@ -1,9 +1,8 @@
import React from 'react'; import React from 'react';
function AlibabaLogo( const AlibabaLogo = (
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement> props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
): React.ReactNode { ): JSX.Element => (
return (
<svg <svg
id='alibaba-logo' id='alibaba-logo'
version='1.1' version='1.1'
@ -50,7 +49,6 @@ function AlibabaLogo(
</g> </g>
</svg> </svg>
); );
}
AlibabaLogo.displayName = 'AlibabaLogo'; AlibabaLogo.displayName = 'AlibabaLogo';
export default AlibabaLogo; export default AlibabaLogo;

View File

@ -1,9 +1,8 @@
import React from 'react'; import React from 'react';
function SpotifyLogo( const SpotifyLogo = (
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement> props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
): React.ReactNode { ): JSX.Element => (
return (
<svg <svg
id='amazon-logo' id='amazon-logo'
viewBox='93.907 250 1350 472' viewBox='93.907 250 1350 472'
@ -64,7 +63,6 @@ function SpotifyLogo(
</g> </g>
</svg> </svg>
); );
}
SpotifyLogo.displayName = 'SpotifyLogo'; SpotifyLogo.displayName = 'SpotifyLogo';

View File

@ -1,9 +1,8 @@
import React from 'react'; import React from 'react';
function AppleLogo( const AppleLogo = (
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement> props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
): React.ReactNode { ): JSX.Element => (
return (
<svg <svg
id='apple-logo' id='apple-logo'
viewBox='450 0 500 650' viewBox='450 0 500 650'
@ -18,7 +17,6 @@ function AppleLogo(
</g> </g>
</svg> </svg>
); );
}
AppleLogo.displayName = 'AppleLogo'; AppleLogo.displayName = 'AppleLogo';

View File

@ -1,8 +1,8 @@
import React from 'react'; import React from 'react';
function AsSeenInText( const AsSeenInText = (
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement> props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
): React.ReactNode { ): JSX.Element => {
const fill = props.fill === 'dark' ? 'var(--gray-75)' : 'var(--gray-15)'; const fill = props.fill === 'dark' ? 'var(--gray-75)' : 'var(--gray-15)';
return ( return (
<svg <svg
@ -116,7 +116,7 @@ function AsSeenInText(
/> />
</svg> </svg>
); );
} };
AsSeenInText.displayName = 'AsSeenInText'; AsSeenInText.displayName = 'AsSeenInText';

View File

@ -1,9 +1,8 @@
import React from 'react'; import React from 'react';
function GoogleLogo( const GoogleLogo = (
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement> props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
): React.ReactNode { ): JSX.Element => (
return (
<svg <svg
id='google-logo' id='google-logo'
viewBox='1635 200 1185 600' viewBox='1635 200 1185 600'
@ -22,7 +21,6 @@ function GoogleLogo(
</g> </g>
</svg> </svg>
); );
}
GoogleLogo.displayName = 'GoogleLogo'; GoogleLogo.displayName = 'GoogleLogo';

View File

@ -1,9 +1,8 @@
import React from 'react'; import React from 'react';
function MicrosoftLogo( const MicrosoftLogo = (
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement> props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
): React.ReactNode { ): JSX.Element => (
return (
<svg <svg
id='microsoft-logo' id='microsoft-logo'
viewBox='939.813 1185 1400 472' viewBox='939.813 1185 1400 472'
@ -21,7 +20,6 @@ function MicrosoftLogo(
</g> </g>
</svg> </svg>
); );
}
MicrosoftLogo.displayName = 'MicrosoftLogo'; MicrosoftLogo.displayName = 'MicrosoftLogo';

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,8 @@
import React from 'react'; import React from 'react';
function TencentLogo( const TencentLogo = (
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement> props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
): React.ReactNode { ): JSX.Element => (
return (
<svg <svg
height='75' height='75'
id='tencent-logo' id='tencent-logo'
@ -42,7 +41,6 @@ function TencentLogo(
</g> </g>
</svg> </svg>
); );
}
TencentLogo.displayName = 'TencentLogo'; TencentLogo.displayName = 'TencentLogo';
export default TencentLogo; export default TencentLogo;