From d9c2aa1712fc3cf8ed066dd981f4668f9af8ef25 Mon Sep 17 00:00:00 2001 From: Ben Mitchinson Date: Mon, 27 Apr 2020 20:44:50 -0500 Subject: [PATCH] comment update --- pwa/src/components/DiagnosisFields.json | 4 ++-- pwa/src/components/DiagnosisForm.tsx | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pwa/src/components/DiagnosisFields.json b/pwa/src/components/DiagnosisFields.json index dcec7f6..7c43993 100644 --- a/pwa/src/components/DiagnosisFields.json +++ b/pwa/src/components/DiagnosisFields.json @@ -124,9 +124,9 @@ "name": "Pregnancy", "id": "pregnancy", "text-input-title": "Weeks", - "text-input-id": "pregnancy-weeks", "text-input-type": "number", - "max-length": 2 + "max-length": 2, + "text-input-id": "pregnancy-weeks" }, { "group-title": "Dermatological", diff --git a/pwa/src/components/DiagnosisForm.tsx b/pwa/src/components/DiagnosisForm.tsx index f041cc6..549833e 100644 --- a/pwa/src/components/DiagnosisForm.tsx +++ b/pwa/src/components/DiagnosisForm.tsx @@ -13,7 +13,9 @@ Diagnosis Fields are stored in DiagnosisFields.json in the format: "name": "Name", "id": "id", "text-input-title": "Title", + "text-input-id": "id" for `id` and `data-testid` attributes "text-input-type": "type" (i.e. number) + "max-length": 3 "group-title": "Group Title", "group": [ { "name": "Name1", "id": "id1" },