Skip to content

Commit

Permalink
remove unneeded code in submission summary
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Oct 20, 2023
1 parent 5718bcf commit 320c017
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const SubmissionSummary = (): React.ReactElement => {

const { pkg, currentRevision, packageData, user, documentDates } =
useOutletContext<SideNavOutletContextType>()

const isCMSUser = user?.role === 'CMS_USER'
const submissionStatus = pkg.status
const statePrograms = pkg.state.programs
Expand Down Expand Up @@ -190,12 +191,10 @@ export const SubmissionSummary = (): React.ReactElement => {
submissionName={name}
headerChildComponent={
isCMSUser ? (
<>
<UnlockModalButton
modalRef={modalRef}
disabled={disableUnlockButton}
/>
</>
<UnlockModalButton
modalRef={modalRef}
disabled={disableUnlockButton}
/>
) : undefined
}
statePrograms={statePrograms}
Expand Down

0 comments on commit 320c017

Please sign in to comment.