more
This commit is contained in:
@@ -21,9 +21,14 @@ const CaseTypePage = () => {
|
|||||||
const [contactName, setContactName] = useState("");
|
const [contactName, setContactName] = useState("");
|
||||||
const [billingCode, setBillingCode] = useState("");
|
const [billingCode, setBillingCode] = useState("");
|
||||||
const [leadAttorney, setLeadAttorney] = useState("");
|
const [leadAttorney, setLeadAttorney] = useState("");
|
||||||
const [radioValue, setRadioValue] = useState();
|
const [radioValue, setRadioValue] = useState("");
|
||||||
const [selectedCaseTags, setSelectedCaseTags] = useState([]);
|
const [selectedCaseTags, setSelectedCaseTags] = useState([]);
|
||||||
const [isBusy, setIsBusy] = useState(false);
|
const [isBusy, setIsBusy] = useState(false);
|
||||||
|
|
||||||
|
const [emailError, setEmailError] = useState("");
|
||||||
|
const [leadAttorneyError, setLeadAttorneyError] = useState("");
|
||||||
|
const [caseTypeError, setCaseTypeError] = useState(false);
|
||||||
|
const [clientPositionError, setClientPositionError] = useState();
|
||||||
const typeaheadRef = useRef();
|
const typeaheadRef = useRef();
|
||||||
|
|
||||||
function getCase() {
|
function getCase() {
|
||||||
@@ -44,7 +49,6 @@ const CaseTypePage = () => {
|
|||||||
|
|
||||||
const setSelectedTag = (item) => {
|
const setSelectedTag = (item) => {
|
||||||
if (selectedCaseTags.length < 5) {
|
if (selectedCaseTags.length < 5) {
|
||||||
console.log("item in setSelectedTag ---------------------->", item);
|
|
||||||
const temp = [...selectedCaseTags, item.tagName];
|
const temp = [...selectedCaseTags, item.tagName];
|
||||||
setSelectedCaseTags(temp);
|
setSelectedCaseTags(temp);
|
||||||
console.log("selectedCaseTags", selectedCaseTags);
|
console.log("selectedCaseTags", selectedCaseTags);
|
||||||
@@ -71,10 +75,6 @@ const CaseTypePage = () => {
|
|||||||
setRadioValue(e.value);
|
setRadioValue(e.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSave = () => {
|
|
||||||
console.log("handleSave");
|
|
||||||
};
|
|
||||||
|
|
||||||
async function saveCaseData() {
|
async function saveCaseData() {
|
||||||
if (isBusy) {
|
if (isBusy) {
|
||||||
return;
|
return;
|
||||||
@@ -112,6 +112,9 @@ const CaseTypePage = () => {
|
|||||||
value={leadAttorney}
|
value={leadAttorney}
|
||||||
onChange={(e) => setLeadAttorney(e.target.value)}
|
onChange={(e) => setLeadAttorney(e.target.value)}
|
||||||
></input>
|
></input>
|
||||||
|
<div>
|
||||||
|
{leadAttorneyError ? <div>{leadAttorneyError}</div> : <></>}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="type-col">
|
<div className="type-col">
|
||||||
<input
|
<input
|
||||||
@@ -144,6 +147,7 @@ const CaseTypePage = () => {
|
|||||||
value={email}
|
value={email}
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
></input>
|
></input>
|
||||||
|
{emailError ? <div>{emailError}</div> : <></>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="type-row">
|
<div className="type-row">
|
||||||
|
|||||||
Reference in New Issue
Block a user