Skip to content

Commit f09b602

Browse files
Rohooliomegan-bower4
authored andcommitted
feature/PI-762-ui_poc_for_cpm added placeholder and env field
1 parent 1549250 commit f09b602

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test_ui/product_id_flow/src/components/ProductCreationFlow.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ const EnvironmentConfigStep: React.FC<EnvironmentConfigStepProps> = ({
109109
</label>
110110
<input
111111
type="text"
112+
placeholder="eg. internal-dev, internal-qa, ref, int"
112113
id="environment"
113114
className="nhs-input"
114115
value={environmentConfig.environment}
@@ -352,7 +353,7 @@ const ProductCreationFlow: React.FC = () => {
352353

353354
try {
354355
const response = await fetch(
355-
"https://internal-dev.api.service.nhs.uk/connecting-party-manager/ProductTeam",
356+
`https://${environmentConfig.environment}.api.service.nhs.uk/connecting-party-manager/ProductTeam`,
356357
{
357358
method: "POST",
358359
headers: {
@@ -391,7 +392,7 @@ const ProductCreationFlow: React.FC = () => {
391392

392393
try {
393394
const response = await fetch(
394-
`https://internal-${environmentConfig.environment}.api.service.nhs.uk/connecting-party-manager/ProductTeam/${productTeamResponse?.id}/Product`,
395+
`https://${environmentConfig.environment}.api.service.nhs.uk/connecting-party-manager/ProductTeam/${productTeamResponse?.id}/Product`,
395396
{
396397
method: "POST",
397398
headers: {

0 commit comments

Comments
 (0)