add methods and store for case reference

This commit is contained in:
2021-07-20 11:26:25 +01:00
parent 0d9015d772
commit 4c31728322
10 changed files with 69 additions and 16 deletions
+9 -5
View File
@@ -1,5 +1,6 @@
import useSWR from "swr";
import { Field, reduxForm } from "redux-form";
import router from "next/router";
export function Textfield(props) {
const { name, label } = props;
@@ -293,19 +294,22 @@ export function DecimalField(props) {
);
}
export function ReadOnlyfield(props) {
const { name, label } = props;
const RenderCaseID = {};
export function ReadOnlyfield(props) {
const { name, label, value } = props;
console.log(props.value.refno);
return (
<div className="govuk-form-group">
<label className="govuk-label " htmlFor={props.name}>
{props.label}
</label>
<Field
<input
type="text"
name={props.name}
id={props.name}
component="input"
type="text"
component={RenderCaseID}
value={value}
className="govuk-input govuk-input--width-20"
disabled
/>