Skip to content

Commit

Permalink
requested design changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Oct 31, 2023
1 parent 0a98580 commit 2ddec9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
3 changes: 2 additions & 1 deletion services/app-web/src/pages/MccrsId/MccrsId.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
.formContainer {
> [class^='usa-fieldset'] {
padding: units(4);
margin-bottom: units(2);
padding-top: 32px;
margin-top: units(2);
background: $cms-color-white;
border: 1px solid $theme-color-base-lighter;
Expand All @@ -39,6 +39,7 @@

h3 {
font-size: 22px;
margin-top: 0;
}

> div[class^='usa-form-group']:not(:first-of-type) {
Expand Down
14 changes: 3 additions & 11 deletions services/app-web/src/pages/MccrsId/MccrsId.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect, useMemo } from 'react'
import React, { useState, useEffect } from 'react'
import {
Form as UswdsForm,
ButtonGroup,
Expand Down Expand Up @@ -54,17 +54,9 @@ export const MccrsId = (): React.ReactElement => {
const { updateHeading } = usePage()
const [pkgName, setPkgName] = useState<string | undefined>(undefined)

const customHeading = useMemo(() => {
return (
<span className={styles.customHeading}>
{pkgName}
<span>MC-CRS record number</span>
</span>
)
}, [pkgName])
useEffect(() => {
updateHeading({ customHeading })
}, [customHeading, updateHeading])
updateHeading({ customHeading: pkgName })
}, [pkgName, updateHeading])

const [showPageErrorMessage, setShowPageErrorMessage] = useState<
boolean | string
Expand Down

0 comments on commit 2ddec9e

Please sign in to comment.