Skip to content

Commit

Permalink
Create html element to display signoffs and style to be greyed out wh…
Browse files Browse the repository at this point in the history
…en no signoffs and default black when signoffs present
  • Loading branch information
michellemounde committed Oct 20, 2023
1 parent da4305a commit 5d84509
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ui/src/views/Rules/Rule/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ const useStyles = makeStyles(theme => ({
scheduleIcon: {
marginRight: theme.spacing(3),
},
signoffLabel: {
color: 'rgba(0, 0, 0, 0.54)',
},
signoffs: {
color: 'rgba(0, 0, 0, 0.87)',
},
}));

function Rule({ isNewRule, user, ...props }) {
Expand Down Expand Up @@ -442,6 +448,19 @@ function Rule({ isNewRule, user, ...props }) {
{error && <ErrorPanel fixed error={error} />}
{!isLoading && (
<Fragment>
<div>
<p className={classes.signoffLabel}>
Required Signoff(s):
<span
className={
requiredSignoffs.data &&
ruleRequiredSignoffs.length &&
classes.signoffs
}>
{signoffSummary}
</span>
</p>
</div>
<div className={classes.scheduleDiv}>
<DateTimePicker
todayLabel="ASAP"
Expand Down

0 comments on commit 5d84509

Please sign in to comment.