Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] add study info on extraction page #672

Merged
merged 1 commit into from
Jan 19, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
useStudyId,
useStudyLastUpdated,
useStudyName,
useStudyYear,
useStudyAuthors,
useStudyUsername,
} from 'pages/Studies/StudyStore';
import { useMemo } from 'react';
Expand All @@ -16,6 +18,8 @@ const EditStudyPageHeader: React.FC = (props) => {
const studyId = useStudyId();
const projectId = useProjectId();
const studyName = useStudyName();
const studyYear = useStudyYear();
const studyAuthors = useStudyAuthors();
const projectName = useProjectName();
const studyOwnerUsername = useStudyUsername();
const lastUpdatedAt = useStudyLastUpdated();
Expand Down Expand Up @@ -69,6 +73,16 @@ const EditStudyPageHeader: React.FC = (props) => {
<Box>
<DisplayStudyChipLinks />
</Box>
<Box>
<Typography variant="h5">
{studyYear && `(${studyYear}).`} {studyName}
</Typography>
{studyAuthors && (
<Typography variant="caption" sx={{ color: 'muted.main' }}>
{studyAuthors}
</Typography>
)}
</Box>
</Box>
</>
);
Expand Down
Loading