Skip to content

Commit

Permalink
Merge pull request #169 from djnunez-aot/bug-fix
Browse files Browse the repository at this point in the history
Fix CR action not displaying
  • Loading branch information
jadmsaadaot authored Nov 18, 2024
2 parents 3fa5fcf + c076b8e commit 94479a0
Showing 1 changed file with 15 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import {
Typography,
} from "@mui/material";
import { BCDesignTokens } from "epic.theme";
import { SUBMISSION_STATUS } from "@/models/Submission";
import DocumentRow from "../DocumentRow";
import { Unless, When } from "react-if";
import { When } from "react-if";
import { SubmissionItemTableCell, SubmissionItemTableRowProps } from ".";
import { PackageTableRow } from ".";
import { useNavigate, useParams } from "@tanstack/react-router";
Expand All @@ -18,7 +17,7 @@ export default function StaffSubmissionItemTableRow({
}: SubmissionItemTableRowProps) {
const { projectId, submissionPackageId } = useParams({ strict: false });
const navigate = useNavigate();
const { name, submissions, has_document, status, id } = item;
const { name, submissions, has_document, id } = item;

const actionLabel = has_document ? "Review" : "View";

Expand Down Expand Up @@ -56,21 +55,19 @@ export default function StaffSubmissionItemTableRow({
{/* TODO Add Staff Status' */}
</SubmissionItemTableCell>
<SubmissionItemTableCell align="center">
<Unless condition={status === SUBMISSION_STATUS.SUBMITTED.value}>
<Typography
variant="body2"
sx={{
color: BCDesignTokens.typographyColorLink,
"&:hover": {
cursor: "pointer",
textDecoration: "underline",
},
}}
onClick={onActionClick}
>
{actionLabel}
</Typography>
</Unless>
<Typography
variant="body2"
sx={{
color: BCDesignTokens.typographyColorLink,
"&:hover": {
cursor: "pointer",
textDecoration: "underline",
},
}}
onClick={onActionClick}
>
{actionLabel}
</Typography>
</SubmissionItemTableCell>
</PackageTableRow>
{submissions.map((submission) => (
Expand Down

0 comments on commit 94479a0

Please sign in to comment.