Skip to content

Commit 2bc4192

Browse files
committed
Use string constants for page text
1 parent eb4069d commit 2bc4192

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/cpt-ui/app/selectyourrole/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default function SelectYourRolePage() {
105105
);
106106
}
107107

108-
const { title, caption, insetText, confirmButton, alternativeMessage } =
108+
const { title, caption, insetText, confirmButton, alternativeMessage, organisation, role } =
109109
SELECT_ROLE_PAGE_TEXT;
110110

111111
return (
@@ -168,8 +168,8 @@ export default function SelectYourRolePage() {
168168
<Table>
169169
<Table.Head>
170170
<Table.Row>
171-
<Table.Cell>Organisation</Table.Cell>
172-
<Table.Cell>Role</Table.Cell>
171+
<Table.Cell>{organisation}</Table.Cell>
172+
<Table.Cell>{role}</Table.Cell>
173173
</Table.Row>
174174
</Table.Head>
175175
<Table.Body>

packages/cpt-ui/constants/ui-strings/CardStrings.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ export const SELECT_ROLE_PAGE_TEXT = {
3636
text: "Confirm and continue to find a prescription",
3737
link: "tracker-presc-no"
3838
},
39-
alternativeMessage: "Alternatively, you can choose a new role below."
39+
alternativeMessage: "Alternatively, you can choose a new role below.",
40+
organisation: "Organisation",
41+
role: "Role"
4042
}

0 commit comments

Comments
 (0)