Reformat all project files to use the prettier config file.

This commit is contained in:
Patrick Fic
2024-03-27 15:35:07 -07:00
parent b161530381
commit e1df64d592
873 changed files with 111387 additions and 125473 deletions

View File

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