chore: migrate to jsx element (#43707)
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
import React from 'react';
|
||||
|
||||
function AlibabaLogo(
|
||||
const AlibabaLogo = (
|
||||
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
||||
): React.ReactNode {
|
||||
return (
|
||||
): JSX.Element => (
|
||||
<svg
|
||||
id='alibaba-logo'
|
||||
version='1.1'
|
||||
@ -50,7 +49,6 @@ function AlibabaLogo(
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
AlibabaLogo.displayName = 'AlibabaLogo';
|
||||
export default AlibabaLogo;
|
||||
|
@ -1,9 +1,8 @@
|
||||
import React from 'react';
|
||||
|
||||
function SpotifyLogo(
|
||||
const SpotifyLogo = (
|
||||
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
||||
): React.ReactNode {
|
||||
return (
|
||||
): JSX.Element => (
|
||||
<svg
|
||||
id='amazon-logo'
|
||||
viewBox='93.907 250 1350 472'
|
||||
@ -64,7 +63,6 @@ function SpotifyLogo(
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
SpotifyLogo.displayName = 'SpotifyLogo';
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
import React from 'react';
|
||||
|
||||
function AppleLogo(
|
||||
const AppleLogo = (
|
||||
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
||||
): React.ReactNode {
|
||||
return (
|
||||
): JSX.Element => (
|
||||
<svg
|
||||
id='apple-logo'
|
||||
viewBox='450 0 500 650'
|
||||
@ -18,7 +17,6 @@ function AppleLogo(
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
AppleLogo.displayName = 'AppleLogo';
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import React from 'react';
|
||||
|
||||
function AsSeenInText(
|
||||
const AsSeenInText = (
|
||||
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
||||
): React.ReactNode {
|
||||
): JSX.Element => {
|
||||
const fill = props.fill === 'dark' ? 'var(--gray-75)' : 'var(--gray-15)';
|
||||
return (
|
||||
<svg
|
||||
@ -116,7 +116,7 @@ function AsSeenInText(
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
AsSeenInText.displayName = 'AsSeenInText';
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
import React from 'react';
|
||||
|
||||
function GoogleLogo(
|
||||
const GoogleLogo = (
|
||||
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
||||
): React.ReactNode {
|
||||
return (
|
||||
): JSX.Element => (
|
||||
<svg
|
||||
id='google-logo'
|
||||
viewBox='1635 200 1185 600'
|
||||
@ -22,7 +21,6 @@ function GoogleLogo(
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
GoogleLogo.displayName = 'GoogleLogo';
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
import React from 'react';
|
||||
|
||||
function MicrosoftLogo(
|
||||
const MicrosoftLogo = (
|
||||
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
||||
): React.ReactNode {
|
||||
return (
|
||||
): JSX.Element => (
|
||||
<svg
|
||||
id='microsoft-logo'
|
||||
viewBox='939.813 1185 1400 472'
|
||||
@ -21,7 +20,6 @@ function MicrosoftLogo(
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
MicrosoftLogo.displayName = 'MicrosoftLogo';
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,9 +1,8 @@
|
||||
import React from 'react';
|
||||
|
||||
function TencentLogo(
|
||||
const TencentLogo = (
|
||||
props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>
|
||||
): React.ReactNode {
|
||||
return (
|
||||
): JSX.Element => (
|
||||
<svg
|
||||
height='75'
|
||||
id='tencent-logo'
|
||||
@ -42,7 +41,6 @@ function TencentLogo(
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
TencentLogo.displayName = 'TencentLogo';
|
||||
export default TencentLogo;
|
||||
|
Reference in New Issue
Block a user