Skip to content

Commit

Permalink
feat: use a different color for applicant change set
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Oct 14, 2024
1 parent 291b114 commit 41d388c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@
},
"changeReason": {
"label": "Selvitys",
"placeholder": "Syy muokkaukseen"
"placeholder": "Syy muokkaukseen",
"additionalInformationRequired": "Lisätietoja vaadittu"
}
},
"salaryExpensesExplanation": "Ilmoita bruttopalkka, sivukulut ja lomaraha euroina kuukaudessa.",
Expand Down
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/fi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@
},
"changeReason": {
"label": "Selvitys",
"placeholder": "Syy muokkaukseen"
"placeholder": "Syy muokkaukseen",
"additionalInformationRequired": "Lisätietoja vaadittu"
}
},
"salaryExpensesExplanation": "Ilmoita bruttopalkka, sivukulut ja lomaraha euroina kuukaudessa.",
Expand Down
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/sv/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@
},
"changeReason": {
"label": "Selvitys",
"placeholder": "Syy muokkaukseen"
"placeholder": "Syy muokkaukseen",
"additionalInformationRequired": "Lisätietoja vaadittu"
}
},
"salaryExpensesExplanation": "Ilmoita bruttopalkka, sivukulut ja lomaraha euroina kuukaudessa.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ export const $ChangeRowLabel = styled.dt`
margin: 0;
`;

export const $ChangeSet = styled.div`
background: ${(props) => props.theme.colors.silverLight};
type $ChangeSetProps = {
isChangeByStaff: boolean;
};
export const $ChangeSet = styled.div<$ChangeSetProps>`
background: ${(props) =>
props.isChangeByStaff
? props.theme.colors.silverLight
: props.theme.colors.fogLight};
padding: ${(props) => props.theme.spacing.s};
font-size: 0.99em;
margin-bottom: ${(props) => props.theme.spacing.xs};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const ChangeSet: React.FC<ChangeSetProps> = ({ data }: ChangeSetProps) => {
);

return (
<$ChangeSet>
<$ChangeSet isChangeByStaff={user.staff}>
<$ChangeSetHeader>
<span>{user.name}</span>
<span>{convertToUIDateAndTimeFormat(date)}</span>
Expand Down

0 comments on commit 41d388c

Please sign in to comment.