Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion client/src/modules/home/modules/project/v1/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect } from 'react';
import { Link, useParams } from 'react-router-dom';
import { Link, useParams, useNavigate } from 'react-router-dom';
import { Box, Button, Avatar, Link as MuiLink } from '@mui/material';
import { getDay } from '../../../../../shared/utils/date';
import { useAtomValue } from 'jotai';
Expand All @@ -18,13 +18,17 @@ import {
import { useA2ZTheme } from '../../../../../shared/hooks/use-theme';
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
import GitHubIcon from '@mui/icons-material/GitHub';
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
import { getAllProjectsResponse } from '../../../../../infra/rest/apis/project/typing';
import { OutputBlockData } from '@editorjs/editorjs';
import { CommentsWrapperAtom } from '../../../../../shared/components/organisms/comments-wrapper/states';
import A2ZTypography from '../../../../../shared/components/atoms/typography';
import Header from '../../../../../shared/components/organisms/header';
import A2ZIconButton from '../../../../../shared/components/atoms/icon-button';

const Project = () => {
const { project_id } = useParams();
const navigate = useNavigate();
const { theme: a2zTheme } = useA2ZTheme();
const selectedProject = useAtomValue(SelectedProjectAtom);
const similarProjects = useAtomValue(HomePageProjectsAtom);
Expand All @@ -45,6 +49,19 @@ const Project = () => {
return (
<>
{commentsWrapper && <CommentsWrapper />}

<Header
leftSideChildren={
<A2ZIconButton
props={{
onClick: () => navigate(-1),
'aria-label': 'Go back',
}}
>
<ArrowBackIcon />
</A2ZIconButton>
}
/>

<Box
sx={{
Expand Down
Loading