From ac1cf0002527b26ddafdf0c715b73f8a63921379 Mon Sep 17 00:00:00 2001 From: Tomasz 'Tom' Kandula Date: Sat, 8 Jun 2024 11:32:29 +0200 Subject: [PATCH 1/2] feat: use progress on scroll for all documents --- .../Pages/DocumentsPage/AboutPage/index.tsx | 7 ++---- .../Pages/DocumentsPage/BicyclePage/index.tsx | 7 ++---- .../DocumentsPage/ElectronicsPage/index.tsx | 7 ++---- .../DocumentsPage/FootballPage/index.tsx | 7 ++---- .../Pages/DocumentsPage/GuitarPage/index.tsx | 7 ++---- .../LegalPage/PolicyPage/index.tsx | 7 ++---- .../LegalPage/TermsPage/index.tsx | 7 ++---- .../DocumentsPage/PhotographyPage/index.tsx | 7 ++---- .../DocumentsPage/ShowcasePage/index.tsx | 7 ++---- .../Pages/DocumentsPage/StoryPage/index.tsx | 7 ++---- .../DocumentContentWrapper/index.tsx | 22 +++++++++++++++++++ .../src/Shared/Components/index.ts | 1 + 12 files changed, 43 insertions(+), 50 deletions(-) create mode 100644 TokanPages.ClientApp/src/Shared/Components/DocumentContentWrapper/index.tsx diff --git a/TokanPages.ClientApp/src/Pages/DocumentsPage/AboutPage/index.tsx b/TokanPages.ClientApp/src/Pages/DocumentsPage/AboutPage/index.tsx index 2138bb131..6753362e8 100644 --- a/TokanPages.ClientApp/src/Pages/DocumentsPage/AboutPage/index.tsx +++ b/TokanPages.ClientApp/src/Pages/DocumentsPage/AboutPage/index.tsx @@ -1,9 +1,8 @@ import * as React from "react"; import { useDispatch, useSelector } from "react-redux"; -import Container from "@material-ui/core/Container"; import { ApplicationState } from "../../../Store/Configuration"; import { Navigation, Footer } from "../../../Components/Layout"; -import { DocumentContent } from "../../../Components/Document"; +import { DocumentContentWrapper } from "../../../Shared/Components"; import { ContentNavigationAction, @@ -30,9 +29,7 @@ export const AboutPage = (): JSX.Element => { return ( <> - - - +