From beabf41fb299374b405ac2971aa9ca255d96825e Mon Sep 17 00:00:00 2001 From: Saliou Diallo Date: Tue, 17 Oct 2023 01:40:08 -0400 Subject: [PATCH] Lint --- .../src/components/public-site/FooterV2.module.css | 2 +- .../web/src/components/public-site/FooterV2.tsx | 2 +- .../components/public-site/NavBannerV2.module.css | 2 +- .../web/src/components/public-site/NavBannerV2.tsx | 14 +++++++++----- .../components/public-site/NavOverlayV2.module.css | 2 +- .../src/components/public-site/NavOverlayV2.tsx | 3 ++- .../web/src/pages/download-page/DownloadPage.tsx | 2 +- .../landing-page-v2/components/ArtistInvestors.tsx | 9 +++------ .../components/CTAGetStarted.module.css | 2 +- .../landing-page-v2/components/CTAGetStarted.tsx | 2 +- .../components/CTAStartListening.module.css | 2 +- .../components/CTAStartListening.tsx | 2 +- .../components/CaseStudies.module.css | 2 +- .../landing-page-v2/components/CaseStudies.tsx | 2 +- .../components/Description.module.css | 2 +- .../landing-page-v2/components/Description.tsx | 2 +- .../components/FeaturedContent.module.css | 2 +- .../landing-page-v2/components/FeaturedContent.tsx | 2 +- .../landing-page-v2/components/Hero.module.css | 2 +- .../src/pages/landing-page-v2/components/Hero.tsx | 4 ++-- .../components/PlatformFeatures.module.css | 2 +- .../components/PlatformFeatures.tsx | 2 +- .../components/WhoUsesAudius.module.css | 2 +- .../landing-page-v2/components/WhoUsesAudius.tsx | 3 ++- 24 files changed, 37 insertions(+), 34 deletions(-) diff --git a/packages/web/src/components/public-site/FooterV2.module.css b/packages/web/src/components/public-site/FooterV2.module.css index 5343cdd6e83..3b5abcb81a6 100644 --- a/packages/web/src/components/public-site/FooterV2.module.css +++ b/packages/web/src/components/public-site/FooterV2.module.css @@ -221,4 +221,4 @@ .isMobile .linksContainer { margin-bottom: 0px; -} \ No newline at end of file +} diff --git a/packages/web/src/components/public-site/FooterV2.tsx b/packages/web/src/components/public-site/FooterV2.tsx index 822c177fe9d..6bda03c22b4 100644 --- a/packages/web/src/components/public-site/FooterV2.tsx +++ b/packages/web/src/components/public-site/FooterV2.tsx @@ -201,4 +201,4 @@ const Footer = (props: FooterProps) => { ) } -export default Footer \ No newline at end of file +export default Footer diff --git a/packages/web/src/components/public-site/NavBannerV2.module.css b/packages/web/src/components/public-site/NavBannerV2.module.css index d0768a23f3d..a83f4ac80d6 100644 --- a/packages/web/src/components/public-site/NavBannerV2.module.css +++ b/packages/web/src/components/public-site/NavBannerV2.module.css @@ -352,4 +352,4 @@ .invertColors .iconLink:hover { text-decoration: underline var(--static-secondary) !important; -} \ No newline at end of file +} diff --git a/packages/web/src/components/public-site/NavBannerV2.tsx b/packages/web/src/components/public-site/NavBannerV2.tsx index f09ebc54468..f6d4941c992 100644 --- a/packages/web/src/components/public-site/NavBannerV2.tsx +++ b/packages/web/src/components/public-site/NavBannerV2.tsx @@ -88,14 +88,16 @@ const NavBanner = (props: NavBannerProps) => { { text: messages.help, subtext: messages.helpDescription, - onClick: () => window.open(AUDIUS_HELP_LINK, '_blank', 'noreferrer,noopener'), + onClick: () => + window.open(AUDIUS_HELP_LINK, '_blank', 'noreferrer,noopener'), icon: , iconClassName: styles.menuItemIcon }, { text: messages.download, subtext: messages.downloadDescription, - onClick: () => window.open(DOWNLOAD_LINK, '_blank', 'noreferrer,noopener'), + onClick: () => + window.open(DOWNLOAD_LINK, '_blank', 'noreferrer,noopener'), icon: , iconClassName: styles.menuItemIcon }, @@ -103,7 +105,8 @@ const NavBanner = (props: NavBannerProps) => { text: messages.blog, subtext: messages.blogDescription, className: styles.rewardsMenuItem, - onClick: () => window.open(AUDIUS_BLOG_LINK, '_blank', 'noreferrer,noopener'), + onClick: () => + window.open(AUDIUS_BLOG_LINK, '_blank', 'noreferrer,noopener'), icon: , iconClassName: styles.menuItemIconStroke }, @@ -117,7 +120,8 @@ const NavBanner = (props: NavBannerProps) => { { text: messages.merch, subtext: messages.merchDescription, - onClick: () => window.open(AUDIUS_MERCH_LINK, '_blank', 'noreferrer,noopener'), + onClick: () => + window.open(AUDIUS_MERCH_LINK, '_blank', 'noreferrer,noopener'), icon: , iconClassName: styles.menuItemIconStroke } @@ -215,4 +219,4 @@ const NavBanner = (props: NavBannerProps) => { ) } -export default NavBanner \ No newline at end of file +export default NavBanner diff --git a/packages/web/src/components/public-site/NavOverlayV2.module.css b/packages/web/src/components/public-site/NavOverlayV2.module.css index 4f317536f1f..ce0b10fbed9 100644 --- a/packages/web/src/components/public-site/NavOverlayV2.module.css +++ b/packages/web/src/components/public-site/NavOverlayV2.module.css @@ -141,4 +141,4 @@ .icon path { fill: var(--static-white); -} \ No newline at end of file +} diff --git a/packages/web/src/components/public-site/NavOverlayV2.tsx b/packages/web/src/components/public-site/NavOverlayV2.tsx index 405de10d6fd..d21e013d258 100644 --- a/packages/web/src/components/public-site/NavOverlayV2.tsx +++ b/packages/web/src/components/public-site/NavOverlayV2.tsx @@ -168,6 +168,7 @@ const NavOverlay = (props: NavOverlayProps) => { className={styles.dappLink} href={link} target='_blank' + rel='noreferrer' > {icon}

{text}

@@ -198,4 +199,4 @@ const NavOverlay = (props: NavOverlayProps) => { ) } -export default NavOverlay \ No newline at end of file +export default NavOverlay diff --git a/packages/web/src/pages/download-page/DownloadPage.tsx b/packages/web/src/pages/download-page/DownloadPage.tsx index ecb9aa377e4..5ee6b8b0d65 100644 --- a/packages/web/src/pages/download-page/DownloadPage.tsx +++ b/packages/web/src/pages/download-page/DownloadPage.tsx @@ -186,7 +186,7 @@ const DownloadPage = (props: DownloadPageProps) => { diff --git a/packages/web/src/pages/landing-page-v2/components/ArtistInvestors.tsx b/packages/web/src/pages/landing-page-v2/components/ArtistInvestors.tsx index fcd9f82637f..60ec12ccfdb 100644 --- a/packages/web/src/pages/landing-page-v2/components/ArtistInvestors.tsx +++ b/packages/web/src/pages/landing-page-v2/components/ArtistInvestors.tsx @@ -1,10 +1,9 @@ // eslint-disable-next-line no-restricted-imports -- TODO: migrate to @react-spring/web -import cn from 'classnames' import { useSpring, animated } from 'react-spring' -import investorPlaceholder from 'assets/img/publicSite/Investor-Placeholder.svg' import investorKatyPerry from 'assets/img/publicSite/Investor-Katy-Perry.webp' import investorNas from 'assets/img/publicSite/Investor-Nas.webp' +import investorPlaceholder from 'assets/img/publicSite/Investor-Placeholder.svg' import investorPushaT from 'assets/img/publicSite/Investor-Pusha-T.webp' import investorTheChainsmokers from 'assets/img/publicSite/Investor-The-Chainsmokers.webp' import useHasViewed from 'hooks/useHasViewed' @@ -105,11 +104,9 @@ const ArtistInvestors = (props: ArtistInvestorsProps) => {
{artists.map((artist, i) => ( - ))} + ))}
-

- {messages.manyMore} -

+

{messages.manyMore}

) diff --git a/packages/web/src/pages/landing-page-v2/components/CTAGetStarted.module.css b/packages/web/src/pages/landing-page-v2/components/CTAGetStarted.module.css index 54e79b42192..19b5e06aca9 100644 --- a/packages/web/src/pages/landing-page-v2/components/CTAGetStarted.module.css +++ b/packages/web/src/pages/landing-page-v2/components/CTAGetStarted.module.css @@ -187,4 +187,4 @@ position: relative; width: 100%; height: 100%; -} \ No newline at end of file +} diff --git a/packages/web/src/pages/landing-page-v2/components/CTAGetStarted.tsx b/packages/web/src/pages/landing-page-v2/components/CTAGetStarted.tsx index 0fd12084e7a..da4427921dd 100644 --- a/packages/web/src/pages/landing-page-v2/components/CTAGetStarted.tsx +++ b/packages/web/src/pages/landing-page-v2/components/CTAGetStarted.tsx @@ -150,4 +150,4 @@ const CTAGetStarted = (props: CTAGetStartedProps) => { ) } -export default CTAGetStarted \ No newline at end of file +export default CTAGetStarted diff --git a/packages/web/src/pages/landing-page-v2/components/CTAStartListening.module.css b/packages/web/src/pages/landing-page-v2/components/CTAStartListening.module.css index 8d47316a628..4d1370fa3fa 100644 --- a/packages/web/src/pages/landing-page-v2/components/CTAStartListening.module.css +++ b/packages/web/src/pages/landing-page-v2/components/CTAStartListening.module.css @@ -200,4 +200,4 @@ left: 0; height: 100%; width: 100%; -} \ No newline at end of file +} diff --git a/packages/web/src/pages/landing-page-v2/components/CTAStartListening.tsx b/packages/web/src/pages/landing-page-v2/components/CTAStartListening.tsx index 3be8dd90d48..2253eade031 100644 --- a/packages/web/src/pages/landing-page-v2/components/CTAStartListening.tsx +++ b/packages/web/src/pages/landing-page-v2/components/CTAStartListening.tsx @@ -94,4 +94,4 @@ const CTAStartListening = (props: CTAStartListeningProps) => { ) } -export default CTAStartListening \ No newline at end of file +export default CTAStartListening diff --git a/packages/web/src/pages/landing-page-v2/components/CaseStudies.module.css b/packages/web/src/pages/landing-page-v2/components/CaseStudies.module.css index 95acdcf15a9..b9ed85983e3 100644 --- a/packages/web/src/pages/landing-page-v2/components/CaseStudies.module.css +++ b/packages/web/src/pages/landing-page-v2/components/CaseStudies.module.css @@ -201,4 +201,4 @@ font-weight: 500; line-height: 24px; text-shadow: 0 2px 10px rgba(25, 0, 96, 0.5); -} \ No newline at end of file +} diff --git a/packages/web/src/pages/landing-page-v2/components/CaseStudies.tsx b/packages/web/src/pages/landing-page-v2/components/CaseStudies.tsx index c54207ac843..da159258d8f 100644 --- a/packages/web/src/pages/landing-page-v2/components/CaseStudies.tsx +++ b/packages/web/src/pages/landing-page-v2/components/CaseStudies.tsx @@ -179,4 +179,4 @@ const CaseStudies = (props: CaseStudiesProps) => { ) } -export default CaseStudies \ No newline at end of file +export default CaseStudies diff --git a/packages/web/src/pages/landing-page-v2/components/Description.module.css b/packages/web/src/pages/landing-page-v2/components/Description.module.css index fc5290f1b76..d0867cc2265 100644 --- a/packages/web/src/pages/landing-page-v2/components/Description.module.css +++ b/packages/web/src/pages/landing-page-v2/components/Description.module.css @@ -238,4 +238,4 @@ .mobileContainer .textDescription p { margin-bottom: 16px; -} \ No newline at end of file +} diff --git a/packages/web/src/pages/landing-page-v2/components/Description.tsx b/packages/web/src/pages/landing-page-v2/components/Description.tsx index c4bbf1f13c1..71b8a469ce8 100644 --- a/packages/web/src/pages/landing-page-v2/components/Description.tsx +++ b/packages/web/src/pages/landing-page-v2/components/Description.tsx @@ -265,4 +265,4 @@ const Description = (props: DescriptionProps) => { ) } -export default Description \ No newline at end of file +export default Description diff --git a/packages/web/src/pages/landing-page-v2/components/FeaturedContent.module.css b/packages/web/src/pages/landing-page-v2/components/FeaturedContent.module.css index 727d2aacff3..adfe7f1f265 100644 --- a/packages/web/src/pages/landing-page-v2/components/FeaturedContent.module.css +++ b/packages/web/src/pages/landing-page-v2/components/FeaturedContent.module.css @@ -248,4 +248,4 @@ height: auto; top: 65%; z-index: 0; -} \ No newline at end of file +} diff --git a/packages/web/src/pages/landing-page-v2/components/FeaturedContent.tsx b/packages/web/src/pages/landing-page-v2/components/FeaturedContent.tsx index e96e916aeee..bc65ccef318 100644 --- a/packages/web/src/pages/landing-page-v2/components/FeaturedContent.tsx +++ b/packages/web/src/pages/landing-page-v2/components/FeaturedContent.tsx @@ -283,4 +283,4 @@ const FeaturedContent = (props: FeaturedContentProps) => { ) } -export default FeaturedContent \ No newline at end of file +export default FeaturedContent diff --git a/packages/web/src/pages/landing-page-v2/components/Hero.module.css b/packages/web/src/pages/landing-page-v2/components/Hero.module.css index acde7baa34e..40f529b28d3 100644 --- a/packages/web/src/pages/landing-page-v2/components/Hero.module.css +++ b/packages/web/src/pages/landing-page-v2/components/Hero.module.css @@ -335,4 +335,4 @@ bottom: 0px; left: 0; transform: scale3d(3, 3, 3); -} \ No newline at end of file +} diff --git a/packages/web/src/pages/landing-page-v2/components/Hero.tsx b/packages/web/src/pages/landing-page-v2/components/Hero.tsx index a3636c88ed7..5d3da45dc31 100644 --- a/packages/web/src/pages/landing-page-v2/components/Hero.tsx +++ b/packages/web/src/pages/landing-page-v2/components/Hero.tsx @@ -4,10 +4,10 @@ import { IconCaretRight, IconDownload } from '@audius/stems' import cn from 'classnames' import { Parallax, useParallaxController } from 'react-scroll-parallax' -import HeroForeground from 'assets/img/publicSite/ProductShot1@2x.webp' import HeroBackgroundMobile from 'assets/img/publicSite/HeroBG.webp' import HeroBackground from 'assets/img/publicSite/HeroBG@2x.webp' import HeroBackgroundXL from 'assets/img/publicSite/HeroBG@3x.webp' +import HeroForeground from 'assets/img/publicSite/ProductShot1@2x.webp' import { ReactComponent as AppStoreBadge } from 'assets/img/publicSite/app-store-badge.svg' import GlyphPattern1x from 'assets/img/publicSite/glyph-pattern@1x.png' import GlyphPattern2x from 'assets/img/publicSite/glyph-pattern@2x.png' @@ -224,4 +224,4 @@ export const Hero = (props: HeroProps) => { ) } -export default Hero \ No newline at end of file +export default Hero diff --git a/packages/web/src/pages/landing-page-v2/components/PlatformFeatures.module.css b/packages/web/src/pages/landing-page-v2/components/PlatformFeatures.module.css index 45805d60770..a891b37a076 100644 --- a/packages/web/src/pages/landing-page-v2/components/PlatformFeatures.module.css +++ b/packages/web/src/pages/landing-page-v2/components/PlatformFeatures.module.css @@ -213,4 +213,4 @@ font-size: 16px; line-height: 24px; font-weight: 500; -} \ No newline at end of file +} diff --git a/packages/web/src/pages/landing-page-v2/components/PlatformFeatures.tsx b/packages/web/src/pages/landing-page-v2/components/PlatformFeatures.tsx index 676097f1858..77f6acbc824 100644 --- a/packages/web/src/pages/landing-page-v2/components/PlatformFeatures.tsx +++ b/packages/web/src/pages/landing-page-v2/components/PlatformFeatures.tsx @@ -155,4 +155,4 @@ const PlatformFeatures = (props: PlatformFeaturesProps) => { ) } -export default PlatformFeatures \ No newline at end of file +export default PlatformFeatures diff --git a/packages/web/src/pages/landing-page-v2/components/WhoUsesAudius.module.css b/packages/web/src/pages/landing-page-v2/components/WhoUsesAudius.module.css index 0ba5f3a1829..95fc0e2d14e 100644 --- a/packages/web/src/pages/landing-page-v2/components/WhoUsesAudius.module.css +++ b/packages/web/src/pages/landing-page-v2/components/WhoUsesAudius.module.css @@ -147,4 +147,4 @@ line-height: 19px; text-align: center; margin: 0px auto; -} \ No newline at end of file +} diff --git a/packages/web/src/pages/landing-page-v2/components/WhoUsesAudius.tsx b/packages/web/src/pages/landing-page-v2/components/WhoUsesAudius.tsx index f7c209857df..9f6c8f455d8 100644 --- a/packages/web/src/pages/landing-page-v2/components/WhoUsesAudius.tsx +++ b/packages/web/src/pages/landing-page-v2/components/WhoUsesAudius.tsx @@ -1,6 +1,7 @@ // eslint-disable-next-line no-restricted-imports -- TODO: migrate to @react-spring/web import { useCallback } from 'react' +// eslint-disable-next-line no-restricted-imports -- TODO: migrate to @react-spring/web import { useSpring, animated } from 'react-spring' import artistAluna from 'assets/img/publicSite/Artist-Aluna.webp' @@ -141,7 +142,7 @@ const WhoUsesAudius = (props: WhoUsesAudiusProps) => { ), width: '100%' }} - > + >

{messages.title}

{messages.subtitle}