From eba9db3600d0122fd34f9e061a29e0a7f398bca7 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Fri, 12 Aug 2022 14:41:30 +0300 Subject: [PATCH] fix: remove nostr card from profile, rename 'Apps' to 'Projects' --- src/App.tsx | 8 ++++---- src/Components/Navbar/NavDesktop.tsx | 4 ++-- src/Components/Navbar/NavMobile.tsx | 20 +++++++++---------- .../SaveChangesCard/SaveChangesCard.tsx | 4 +++- .../pages/ProfilePage/ProfilePage.tsx | 4 ---- .../CategoryPage/HeaderImage/HeaderImage.tsx | 3 ++- .../ExplorePage/Categories/Categories.tsx | 2 +- .../pages/ExplorePage/Header/Header.tsx | 2 +- .../ProjectsSection/ProjectsSection.tsx | 6 +++--- src/utils/routing/routes.ts | 8 ++++---- 10 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d672df3..f94279c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -94,9 +94,9 @@ function App() { } /> }> - } /> - } /> - } /> + } /> + } /> + } /> } /> } /> @@ -111,7 +111,7 @@ function App() { } /> } /> - } /> + } /> diff --git a/src/Components/Navbar/NavDesktop.tsx b/src/Components/Navbar/NavDesktop.tsx index f69ae78..2b2d625 100644 --- a/src/Components/Navbar/NavDesktop.tsx +++ b/src/Components/Navbar/NavDesktop.tsx @@ -47,8 +47,8 @@ export default function NavDesktop() {
  • - - Apps + + Projects
  • diff --git a/src/Components/Navbar/NavMobile.tsx b/src/Components/Navbar/NavMobile.tsx index 0e32380..3ed8a1d 100644 --- a/src/Components/Navbar/NavMobile.tsx +++ b/src/Components/Navbar/NavMobile.tsx @@ -156,10 +156,10 @@ export default function NavMobile() {
  • toggleDrawerOpen(false)} className='text-body4 font-bold hover:text-primary-600'> - Apps + Projects
  • @@ -264,28 +264,28 @@ export default function NavMobile() {
diff --git a/src/features/Profiles/pages/EditProfilePage/SaveChangesCard/SaveChangesCard.tsx b/src/features/Profiles/pages/EditProfilePage/SaveChangesCard/SaveChangesCard.tsx index 3476113..3f83f80 100644 --- a/src/features/Profiles/pages/EditProfilePage/SaveChangesCard/SaveChangesCard.tsx +++ b/src/features/Profiles/pages/EditProfilePage/SaveChangesCard/SaveChangesCard.tsx @@ -35,7 +35,9 @@ export default function SaveChangesCard(props: Props) { return (
- +
diff --git a/src/features/Profiles/pages/ProfilePage/ProfilePage.tsx b/src/features/Profiles/pages/ProfilePage/ProfilePage.tsx index 48b00ce..58a265a 100644 --- a/src/features/Profiles/pages/ProfilePage/ProfilePage.tsx +++ b/src/features/Profiles/pages/ProfilePage/ProfilePage.tsx @@ -44,10 +44,6 @@ export default function ProfilePage() {
- { - isOwner && - - }
diff --git a/src/features/Projects/pages/CategoryPage/HeaderImage/HeaderImage.tsx b/src/features/Projects/pages/CategoryPage/HeaderImage/HeaderImage.tsx index 395039c..2f343ba 100644 --- a/src/features/Projects/pages/CategoryPage/HeaderImage/HeaderImage.tsx +++ b/src/features/Projects/pages/CategoryPage/HeaderImage/HeaderImage.tsx @@ -3,6 +3,7 @@ import { FiArrowLeft } from 'react-icons/fi' import Skeleton from 'react-loading-skeleton' import { Link } from 'react-router-dom' import ASSETS from 'src/assets' +import { PAGES_ROUTES } from 'src/utils/routing' type Props = { isLoading: boolean @@ -33,7 +34,7 @@ export default function HeaderImage(props: Props) { {`${title}
Explore a fun directory of lightning web apps

, img: Assets.Images_ExploreHeader1, link: { - content: "Submit app", + content: "Submit project", url: "https://form.jotform.com/220301236112030", }, }, diff --git a/src/features/Projects/pages/ExplorePage/ProjectsSection/ProjectsSection.tsx b/src/features/Projects/pages/ExplorePage/ProjectsSection/ProjectsSection.tsx index 0b5bac8..0013633 100644 --- a/src/features/Projects/pages/ExplorePage/ProjectsSection/ProjectsSection.tsx +++ b/src/features/Projects/pages/ExplorePage/ProjectsSection/ProjectsSection.tsx @@ -20,7 +20,7 @@ export default function ProjectsSection() { return (
Hottest } - link='/apps/hottest' + link='/projects/hottest' projects={data.hottestProjects} /> } {restCategories.map(({ id, title, project, }) => { if (project) return else return null diff --git a/src/utils/routing/routes.ts b/src/utils/routing/routes.ts index 5f7f696..f4c338f 100644 --- a/src/utils/routing/routes.ts +++ b/src/utils/routing/routes.ts @@ -61,10 +61,10 @@ export function createRoute(options: RouteOptions) { } export const PAGES_ROUTES = { - apps: { - default: "/apps", - hottest: "/apps/hottest", - byCategoryId: "/apps/category/:id" + projects: { + default: "/projects", + hottest: "/projects/hottest", + byCategoryId: "/projects/category/:id" }, blog: { feed: "/blog",