CEC-2281 Update certificate form (#190)

This commit is contained in:
John Wu
2022-08-23 08:51:05 -07:00
committed by GitHub
parent 59a8c934d6
commit f0b2a4f217
3 changed files with 75 additions and 13 deletions

View File

@@ -8,11 +8,12 @@ export const CertTypes = {
TBOX: "TBOX",
ICC: "ICC",
Charging: "Charging",
Aftersales: "Aftersales",
};
const validateCreate = (data) => {
if (!data.type) throw new Error("type is required");
if (!data.vin) throw new Error("vin is required");
if (!data.common_name) throw new Error("common name is required");
};
export const CertificateProvider = ({ children }) => {