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
+14 -3
View File
@@ -15,6 +15,8 @@ import {
getAppealTypeObj,
} from "../../store/appealType/action";
import { createCase } from "../../actions";
let CreateCase = (props) => {
// useEffect(() => {
// window.scrollTo(0, 0);
@@ -100,9 +102,18 @@ let CreateCase = (props) => {
const onHandleSubmit = (values) => {
event.preventDefault();
router.replace("/newappeal/" + values.appealTypes, null, {
shallow: true,
});
console.log(createCase("asasa", "asasa"));
const caseReference = createCase("123123", "213132");
router.replace(
"/newappeal/" + values.appealTypes + "?refno=" + caseReference,
null,
{
shallow: true,
}
);
console.log(values);
};