add methods and store for case reference
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user