diff --git a/TokanPages.ClientApp/src/Api/Request/Paths/index.ts b/TokanPages.ClientApp/src/Api/Request/Paths/index.ts index a9374f402..8a56cc0d8 100644 --- a/TokanPages.ClientApp/src/Api/Request/Paths/index.ts +++ b/TokanPages.ClientApp/src/Api/Request/Paths/index.ts @@ -77,6 +77,7 @@ export const GET_UPDATE_NEWSLETTER_CONTENT = `${API_CONTENT_URI}/getContent?name export const GET_WRONG_PAGE_PROMPT_CONTENT = `${API_CONTENT_URI}/getContent?name=wrongPagePrompt&type=component`; export const GET_ACCOUNT_CONTENT = `${API_CONTENT_URI}/getContent?name=account&type=component`; export const GET_ARTICLE_CONTENT = `${API_CONTENT_URI}/getContent?name=article&type=component`; +export const GET_ABOUT_CONTENT = `${API_CONTENT_URI}/getContent?name=about&type=document`; export const GET_STORY_CONTENT = `${API_CONTENT_URI}/getContent?name=story&type=document`; export const GET_TERMS_CONTENT = `${API_CONTENT_URI}/getContent?name=terms&type=document`; export const GET_POLICY_CONTENT = `${API_CONTENT_URI}/getContent?name=policy&type=document`; diff --git a/TokanPages.ClientApp/src/Api/Request/index.ts b/TokanPages.ClientApp/src/Api/Request/index.ts index e5067fc16..1c36639fd 100644 --- a/TokanPages.ClientApp/src/Api/Request/index.ts +++ b/TokanPages.ClientApp/src/Api/Request/index.ts @@ -59,6 +59,7 @@ export { GET_WRONG_PAGE_PROMPT_CONTENT, GET_ACCOUNT_CONTENT, GET_ARTICLE_CONTENT, + GET_ABOUT_CONTENT, GET_STORY_CONTENT, GET_TERMS_CONTENT, GET_POLICY_CONTENT, diff --git a/TokanPages.ClientApp/src/Pages/DocumentsPage/AboutPage/index.tsx b/TokanPages.ClientApp/src/Pages/DocumentsPage/AboutPage/index.tsx new file mode 100644 index 000000000..2138bb131 --- /dev/null +++ b/TokanPages.ClientApp/src/Pages/DocumentsPage/AboutPage/index.tsx @@ -0,0 +1,39 @@ +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 { + ContentNavigationAction, + ContentFooterAction, + ContentDocumentAction, + ContentTemplatesAction, +} from "../../../Store/Actions"; + +export const AboutPage = (): JSX.Element => { + const dispatch = useDispatch(); + const language = useSelector((state: ApplicationState) => state.applicationLanguage); + const document = useSelector((state: ApplicationState) => state.contentDocument); + + React.useEffect(() => { + dispatch(ContentNavigationAction.get()); + dispatch(ContentFooterAction.get()); + dispatch(ContentDocumentAction.getAbout()); + dispatch(ContentTemplatesAction.get()); + }, [language?.id]); + + const isLoading = document?.contentAbout?.isLoading ?? false; + const items = document?.contentAbout?.content.items ?? []; + + return ( + <> + + + + +