From 320c017e4c25c61b69c5e032dac21ea57e504041 Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Fri, 20 Oct 2023 11:59:30 -0400 Subject: [PATCH] remove unneeded code in submission summary --- .../SubmissionTypeSummarySection.tsx | 2 -- .../src/pages/SubmissionSummary/SubmissionSummary.tsx | 11 +++++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/services/app-web/src/components/SubmissionSummarySection/SubmissionTypeSummarySection/SubmissionTypeSummarySection.tsx b/services/app-web/src/components/SubmissionSummarySection/SubmissionTypeSummarySection/SubmissionTypeSummarySection.tsx index 92047758d7..383b6d3235 100644 --- a/services/app-web/src/components/SubmissionSummarySection/SubmissionTypeSummarySection/SubmissionTypeSummarySection.tsx +++ b/services/app-web/src/components/SubmissionSummarySection/SubmissionTypeSummarySection/SubmissionTypeSummarySection.tsx @@ -18,8 +18,6 @@ export type SubmissionTypeSummarySectionProps = { submission: HealthPlanFormDataType statePrograms: Program[] navigateTo?: string - headerLinkURL?: string - headerLinkLabel?: string headerChildComponent?: React.ReactElement subHeaderComponent?: React.ReactElement initiallySubmittedAt?: Date diff --git a/services/app-web/src/pages/SubmissionSummary/SubmissionSummary.tsx b/services/app-web/src/pages/SubmissionSummary/SubmissionSummary.tsx index 2735d298c5..10ed9287c6 100644 --- a/services/app-web/src/pages/SubmissionSummary/SubmissionSummary.tsx +++ b/services/app-web/src/pages/SubmissionSummary/SubmissionSummary.tsx @@ -70,6 +70,7 @@ export const SubmissionSummary = (): React.ReactElement => { const { pkg, currentRevision, packageData, user, documentDates } = useOutletContext() + const isCMSUser = user?.role === 'CMS_USER' const submissionStatus = pkg.status const statePrograms = pkg.state.programs @@ -190,12 +191,10 @@ export const SubmissionSummary = (): React.ReactElement => { submissionName={name} headerChildComponent={ isCMSUser ? ( - <> - - + ) : undefined } statePrograms={statePrograms}