From 74dba88015e7ec3a6461444bebce2c0604c20825 Mon Sep 17 00:00:00 2001 From: Daniil Polienko Date: Wed, 20 Nov 2024 17:22:48 +0300 Subject: [PATCH] chore: resolve comments --- apps/common/components/FeaturedApp.tsx | 2 +- apps/common/components/MobileNavbar.tsx | 20 +++++++++-------- apps/common/components/ModalMobileMenu.tsx | 2 +- apps/common/components/Sidebar.tsx | 4 +++- apps/common/components/SortingBar.tsx | 5 +++-- apps/common/icons/LogoDiscordRound.tsx | 22 ------------------- apps/common/icons/LogoParagraphRound.tsx | 22 ------------------- apps/common/icons/LogoTwitterRound.tsx | 22 ------------------- apps/landing/components/sections/About.tsx | 2 +- .../components/sections/Contribute.tsx | 7 ++++-- apps/landing/components/sections/Partners.tsx | 4 +++- pages/_app.tsx | 2 +- pages/apps/[category].tsx | 7 +++++- pages/apps/index.tsx | 2 +- pages/apps/search/[query].tsx | 4 +++- 15 files changed, 39 insertions(+), 88 deletions(-) delete mode 100644 apps/common/icons/LogoDiscordRound.tsx delete mode 100644 apps/common/icons/LogoParagraphRound.tsx delete mode 100644 apps/common/icons/LogoTwitterRound.tsx diff --git a/apps/common/components/FeaturedApp.tsx b/apps/common/components/FeaturedApp.tsx index 76f54c564..5628ad1b7 100644 --- a/apps/common/components/FeaturedApp.tsx +++ b/apps/common/components/FeaturedApp.tsx @@ -20,7 +20,7 @@ export function FeaturedApp(props: {app: TApp}): ReactElement { {props.app.name}
{MENU_TABS.map(tab => ( -
+
{LANDING_SIDEBAR_LINKS.slice(0, 5).map(link => ( @@ -51,17 +53,17 @@ export function MobileNavbar({onClose}: {onClose: VoidFunction}): ReactElement { - + - + href={'https://paragraph.xyz/@yearn'}> + - +
diff --git a/apps/common/components/ModalMobileMenu.tsx b/apps/common/components/ModalMobileMenu.tsx index 619162e57..0c4a8fdfa 100644 --- a/apps/common/components/ModalMobileMenu.tsx +++ b/apps/common/components/ModalMobileMenu.tsx @@ -54,7 +54,7 @@ export function FooterNav(): ReactElement { diff --git a/apps/common/components/Sidebar.tsx b/apps/common/components/Sidebar.tsx index aada40dbf..26d5afa9e 100644 --- a/apps/common/components/Sidebar.tsx +++ b/apps/common/components/Sidebar.tsx @@ -37,7 +37,9 @@ export function Sidebar(props: TSidebarProps): ReactElement {
- + {'Sort by Popularity'}

- {isOpen && ( + {isOpen ? (
( ))}
- )} + ) : null} ); } diff --git a/apps/common/icons/LogoDiscordRound.tsx b/apps/common/icons/LogoDiscordRound.tsx deleted file mode 100644 index 7475cd61d..000000000 --- a/apps/common/icons/LogoDiscordRound.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import type {ReactElement} from 'react'; - -export function LogoDiscordRound(props: React.SVGProps): ReactElement { - return ( - - - - ); -} diff --git a/apps/common/icons/LogoParagraphRound.tsx b/apps/common/icons/LogoParagraphRound.tsx deleted file mode 100644 index 284186e58..000000000 --- a/apps/common/icons/LogoParagraphRound.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import type {ReactElement} from 'react'; - -export function LogoParagraphRound(props: React.SVGProps): ReactElement { - return ( - - - - ); -} diff --git a/apps/common/icons/LogoTwitterRound.tsx b/apps/common/icons/LogoTwitterRound.tsx deleted file mode 100644 index 77e641818..000000000 --- a/apps/common/icons/LogoTwitterRound.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import type {ReactElement} from 'react'; - -export function LogoTwitterRound(props: React.SVGProps): ReactElement { - return ( - - - - ); -} diff --git a/apps/landing/components/sections/About.tsx b/apps/landing/components/sections/About.tsx index 43476de33..8d5eb90f0 100644 --- a/apps/landing/components/sections/About.tsx +++ b/apps/landing/components/sections/About.tsx @@ -45,7 +45,7 @@ export function About(): ReactElement { {'at all times.'}

- {!isReadMore && ( + {isReadMore ? null : (

{'Read more'}

- {isHovering && } + {isHovering ? : null}
); @@ -68,7 +68,10 @@ export function Contribute(): ReactElement { 'mt-10 grid grid-flow-col grid-cols-1 grid-rows-4 gap-6 sm:grid-cols-2 sm:grid-rows-2 md:grid-flow-row md:grid-cols-4 md:grid-rows-1' }> {CARDS.map(card => ( - + ))}
diff --git a/apps/landing/components/sections/Partners.tsx b/apps/landing/components/sections/Partners.tsx index c0940e630..99d044c0f 100644 --- a/apps/landing/components/sections/Partners.tsx +++ b/apps/landing/components/sections/Partners.tsx @@ -25,7 +25,9 @@ export function Partners(): ReactElement { pauseOnHover={true} className={'grid h-full overflow-hidden'}> {PARTNERS.map(partner => ( -
+
{'partner'} {isNavbarOpen && (
- {shuffledApps?.map(app => )} + {shuffledApps?.map(app => ( + + ))}
diff --git a/pages/apps/index.tsx b/pages/apps/index.tsx index b11ee993c..97cf3c858 100644 --- a/pages/apps/index.tsx +++ b/pages/apps/index.tsx @@ -41,7 +41,7 @@ export default function Home(): ReactElement {
-

{'Featured Apps'}

+

{'Featured Apps'}

{`Results for "${searchValue}"`}

+ )}> + {`Results for "${searchValue}"`} +

{searchFilteredApps.length < 1 ? (