feat: persist job source and market
This commit is contained in:
@@ -130,6 +130,8 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
|
||||
const [salaryCurrency, setSalaryCurrency] = useState("");
|
||||
const [salaryPeriod, setSalaryPeriod] = useState("");
|
||||
const [jobUrl, setJobUrl] = useState("");
|
||||
const [jobSource, setJobSource] = useState("");
|
||||
const [countryCode, setCountryCode] = useState("");
|
||||
const [deadline, setDeadline] = useState("");
|
||||
|
||||
const [description, setDescription] = useState("");
|
||||
@@ -168,7 +170,7 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
|
||||
setNewCompanySource("");
|
||||
setDateApplied(getTodayIso());
|
||||
setJobTitle("");
|
||||
setStatus("Applied");
|
||||
setStatus("Saved");
|
||||
setLocation("");
|
||||
setSalary("");
|
||||
setSalaryMin("");
|
||||
@@ -176,6 +178,8 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
|
||||
setSalaryCurrency("");
|
||||
setSalaryPeriod("");
|
||||
setJobUrl("");
|
||||
setJobSource("");
|
||||
setCountryCode("");
|
||||
setDeadline("");
|
||||
setDescription("");
|
||||
setTranslatedDescription("");
|
||||
@@ -278,6 +282,8 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
|
||||
}
|
||||
}
|
||||
|
||||
setJobSource(r.source || "");
|
||||
setCountryCode(r.countryCode || "");
|
||||
setDescription(r.description || "");
|
||||
setTranslatedDescription(r.translatedDescription || "");
|
||||
setDescriptionLanguage(r.language || "");
|
||||
@@ -333,6 +339,8 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
|
||||
nextAction: null,
|
||||
followUpAt: null,
|
||||
jobUrl,
|
||||
source: jobSource || null,
|
||||
countryCode: countryCode || null,
|
||||
description: description || null,
|
||||
translatedDescription: shouldShowTranslatedDescription ? translatedDescription || null : null,
|
||||
descriptionLanguage: descriptionLanguage || null,
|
||||
|
||||
Reference in New Issue
Block a user