From f5de80dc4f7301f45f7cce779a356c6a3a3a7632 Mon Sep 17 00:00:00 2001 From: RobertoMSousa Date: Mon, 4 Oct 2021 14:46:34 +0100 Subject: [PATCH] chore: migrate to jsx element (#43707) --- .../assets/images/components/alibaba-logo.tsx | 94 +++++++------ .../assets/images/components/amazon-logo.tsx | 126 +++++++++--------- .../assets/images/components/apple-logo.tsx | 34 +++-- .../images/components/as-seen-in-text.tsx | 6 +- .../assets/images/components/google-logo.tsx | 42 +++--- .../images/components/microsoft-logo.tsx | 40 +++--- .../assets/images/components/spotify-logo.tsx | 28 ++-- .../assets/images/components/tencent-logo.tsx | 80 ++++++----- 8 files changed, 218 insertions(+), 232 deletions(-) diff --git a/client/src/assets/images/components/alibaba-logo.tsx b/client/src/assets/images/components/alibaba-logo.tsx index 41ff1734ce..9e6b81d496 100644 --- a/client/src/assets/images/components/alibaba-logo.tsx +++ b/client/src/assets/images/components/alibaba-logo.tsx @@ -1,56 +1,54 @@ import React from 'react'; -function AlibabaLogo( +const AlibabaLogo = ( props: JSX.IntrinsicAttributes & React.SVGProps -): React.ReactNode { - return ( - +); AlibabaLogo.displayName = 'AlibabaLogo'; export default AlibabaLogo; diff --git a/client/src/assets/images/components/amazon-logo.tsx b/client/src/assets/images/components/amazon-logo.tsx index 19f24de776..58167c6b1e 100644 --- a/client/src/assets/images/components/amazon-logo.tsx +++ b/client/src/assets/images/components/amazon-logo.tsx @@ -1,70 +1,68 @@ import React from 'react'; -function SpotifyLogo( +const SpotifyLogo = ( props: JSX.IntrinsicAttributes & React.SVGProps -): React.ReactNode { - return ( - - ); -} +): JSX.Element => ( + +); SpotifyLogo.displayName = 'SpotifyLogo'; diff --git a/client/src/assets/images/components/apple-logo.tsx b/client/src/assets/images/components/apple-logo.tsx index 52f6bf504f..d79fcf1fe7 100644 --- a/client/src/assets/images/components/apple-logo.tsx +++ b/client/src/assets/images/components/apple-logo.tsx @@ -1,24 +1,22 @@ import React from 'react'; -function AppleLogo( +const AppleLogo = ( props: JSX.IntrinsicAttributes & React.SVGProps -): React.ReactNode { - return ( - - ); -} +): JSX.Element => ( + +); AppleLogo.displayName = 'AppleLogo'; diff --git a/client/src/assets/images/components/as-seen-in-text.tsx b/client/src/assets/images/components/as-seen-in-text.tsx index fadda2c1fc..31c866ebce 100644 --- a/client/src/assets/images/components/as-seen-in-text.tsx +++ b/client/src/assets/images/components/as-seen-in-text.tsx @@ -1,8 +1,8 @@ import React from 'react'; -function AsSeenInText( +const AsSeenInText = ( props: JSX.IntrinsicAttributes & React.SVGProps -): React.ReactNode { +): JSX.Element => { const fill = props.fill === 'dark' ? 'var(--gray-75)' : 'var(--gray-15)'; return ( ); -} +}; AsSeenInText.displayName = 'AsSeenInText'; diff --git a/client/src/assets/images/components/google-logo.tsx b/client/src/assets/images/components/google-logo.tsx index 9415948f6c..c5338946b2 100644 --- a/client/src/assets/images/components/google-logo.tsx +++ b/client/src/assets/images/components/google-logo.tsx @@ -1,28 +1,26 @@ import React from 'react'; -function GoogleLogo( +const GoogleLogo = ( props: JSX.IntrinsicAttributes & React.SVGProps -): React.ReactNode { - return ( - - ); -} +): JSX.Element => ( + +); GoogleLogo.displayName = 'GoogleLogo'; diff --git a/client/src/assets/images/components/microsoft-logo.tsx b/client/src/assets/images/components/microsoft-logo.tsx index 9f05b9bfdb..9d659f1c70 100644 --- a/client/src/assets/images/components/microsoft-logo.tsx +++ b/client/src/assets/images/components/microsoft-logo.tsx @@ -1,27 +1,25 @@ import React from 'react'; -function MicrosoftLogo( +const MicrosoftLogo = ( props: JSX.IntrinsicAttributes & React.SVGProps -): React.ReactNode { - return ( - - ); -} +): JSX.Element => ( + +); MicrosoftLogo.displayName = 'MicrosoftLogo'; diff --git a/client/src/assets/images/components/spotify-logo.tsx b/client/src/assets/images/components/spotify-logo.tsx index fdd15d8532..5f078742b0 100644 --- a/client/src/assets/images/components/spotify-logo.tsx +++ b/client/src/assets/images/components/spotify-logo.tsx @@ -1,21 +1,19 @@ import React from 'react'; -function SpotifyLogo( +const SpotifyLogo = ( props: JSX.IntrinsicAttributes & React.SVGProps -): React.ReactNode { - return ( - - ); -} +): JSX.Element => ( + +); SpotifyLogo.displayName = 'SpotifyLogo'; diff --git a/client/src/assets/images/components/tencent-logo.tsx b/client/src/assets/images/components/tencent-logo.tsx index 337760602a..877be84e27 100644 --- a/client/src/assets/images/components/tencent-logo.tsx +++ b/client/src/assets/images/components/tencent-logo.tsx @@ -1,48 +1,46 @@ import React from 'react'; -function TencentLogo( +const TencentLogo = ( props: JSX.IntrinsicAttributes & React.SVGProps -): React.ReactNode { - return ( - +); TencentLogo.displayName = 'TencentLogo'; export default TencentLogo;