diff --git a/services/web-ui/src/features/blogs/pages/BlogPhotoListPage/BlogPhotoListPage.component.tsx b/services/web-ui/src/features/blogs/pages/BlogPhotoListPage/BlogPhotoListPage.component.tsx index eb5720b4..1945144d 100644 --- a/services/web-ui/src/features/blogs/pages/BlogPhotoListPage/BlogPhotoListPage.component.tsx +++ b/services/web-ui/src/features/blogs/pages/BlogPhotoListPage/BlogPhotoListPage.component.tsx @@ -1,4 +1,5 @@ import { Fragment, ReactElement } from "react"; +import { useNavigate } from "react-router"; import { ImageList, ImageListItem, Typography } from "@mui/material"; @@ -28,6 +29,7 @@ interface GroupProps { function Group({ data }: GroupProps): ReactElement { const groupedData = groupDataByDate(data); + const navigate = useNavigate(); return ( <> @@ -40,7 +42,11 @@ function Group({ data }: GroupProps): ReactElement { {entries.map((item) => ( - + navigate(`/blog/${item.blogId}`)} + /> ))} diff --git a/services/web-ui/src/features/blogs/pages/BlogPostPage/BlogPostPage.nav.tsx b/services/web-ui/src/features/blogs/pages/BlogPostPage/BlogPostPage.nav.tsx index 2bc4f1f0..607e75c7 100644 --- a/services/web-ui/src/features/blogs/pages/BlogPostPage/BlogPostPage.nav.tsx +++ b/services/web-ui/src/features/blogs/pages/BlogPostPage/BlogPostPage.nav.tsx @@ -1,8 +1,10 @@ import { ReactElement, ReactNode } from "react"; +import { Link as ReactRouterLink } from "react-router-dom"; + +import { ArrowBack } from "@mui/icons-material"; +import { IconButton } from "@mui/material"; -import { NavLayout } from "src/components/layout"; import { Nav } from "src/components/nav"; -import { useTranslation } from "src/core/i18n"; interface BlogPostPageNavProps { children: ReactNode; @@ -11,13 +13,19 @@ interface BlogPostPageNavProps { export function BlogPostPageNav({ children, }: BlogPostPageNavProps): ReactElement { - const { t } = useTranslation("blog"); - - return ( - + const appBarContent = ( + <> + + + + ); + + return ; }