@movalib/movalib-commons 1.63.3 → 1.63.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,7 +32,7 @@ var VehiclePlateField = function (_a) {
|
|
|
32
32
|
var _c = (0, react_1.useState)(false), error = _c[0], setError = _c[1];
|
|
33
33
|
var _d = (0, react_1.useState)(0), lastLength = _d[0], setLastLength = _d[1]; // Ajout d'un état pour stocker la longueur précédente
|
|
34
34
|
var _e = (0, react_1.useState)(''), helperText = _e[0], setHelperText = _e[1];
|
|
35
|
-
var MIN_FOREIGN_PLATE_LENGTH =
|
|
35
|
+
var MIN_FOREIGN_PLATE_LENGTH = 3;
|
|
36
36
|
// Hook de validation de la plaque
|
|
37
37
|
(0, react_1.useEffect)(function () {
|
|
38
38
|
if (country === 'FR') {
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ const VehiclePlateField: FunctionComponent<VehiclePlateFieldProps> = ({ onValidV
|
|
|
25
25
|
const [error, setError] = useState<boolean>(false);
|
|
26
26
|
const [lastLength, setLastLength] = useState<number>(0); // Ajout d'un état pour stocker la longueur précédente
|
|
27
27
|
const [helperText, setHelperText] = useState<ReactNode>('');
|
|
28
|
-
const MIN_FOREIGN_PLATE_LENGTH =
|
|
28
|
+
const MIN_FOREIGN_PLATE_LENGTH = 3;
|
|
29
29
|
|
|
30
30
|
// Hook de validation de la plaque
|
|
31
31
|
useEffect(() => {
|