- Merge client update into test-beta

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-18 19:20:08 -05:00
696 changed files with 92291 additions and 107075 deletions

View File

@@ -1,18 +1,18 @@
import React from "react";
export default function VehicleVinDisplay({ children }) {
if (!children) return null;
if (typeof children !== "string" || children.length !== 17) return children;
const vin = children.trim();
export default function VehicleVinDisplay({children}) {
if (!children) return null;
const first = vin.substring(0, 9);
const second = vin.substring(9, 17);
if (typeof children !== "string" || children.length !== 17) return children;
const vin = children.trim();
return (
<>
<span>{first}</span>
<span style={{ textDecoration: "underline" }}>{second}</span>
</>
);
const first = vin.substring(0, 9);
const second = vin.substring(9, 17);
return (
<>
<span>{first}</span>
<span style={{textDecoration: "underline"}}>{second}</span>
</>
);
}