- the great reformat

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-02-06 18:20:58 -05:00
parent 30c530bcc4
commit e83badb454
912 changed files with 108516 additions and 107493 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>
</>
);
}