code format with pre-commit
This commit is contained in:
parent
1a7c3d9da2
commit
59c9c68e78
@ -117,14 +117,14 @@ function getColor(mapping, customData) {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
case ("black"):
|
case "black":
|
||||||
return `text-black`;
|
return `text-black`;
|
||||||
case ("white"):
|
case "white":
|
||||||
return `text-white`;
|
return `text-white`;
|
||||||
case ("theme"):
|
case "theme":
|
||||||
return `text-theme-500`;
|
return `text-theme-500`;
|
||||||
default:
|
default:
|
||||||
return ""
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,9 +155,7 @@ export default function Component({ service }) {
|
|||||||
>
|
>
|
||||||
<div className="font-thin pl-2">{mapping.label}</div>
|
<div className="font-thin pl-2">{mapping.label}</div>
|
||||||
<div className="flex flex-row text-right">
|
<div className="flex flex-row text-right">
|
||||||
<div className="font-bold mr-2">
|
<div className="font-bold mr-2">-</div>
|
||||||
-
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
@ -188,11 +186,9 @@ export default function Component({ service }) {
|
|||||||
>
|
>
|
||||||
<div className="font-thin pl-2">{mapping.label}</div>
|
<div className="font-thin pl-2">{mapping.label}</div>
|
||||||
<div className="flex flex-row text-right">
|
<div className="flex flex-row text-right">
|
||||||
<div className="font-bold mr-2">
|
<div className="font-bold mr-2">{formatValue(t, mapping, getValue(mapping.field, customData))}</div>
|
||||||
{formatValue(t, mapping, getValue(mapping.field, customData))}
|
|
||||||
</div>
|
|
||||||
{mapping.additionalField && (
|
{mapping.additionalField && (
|
||||||
<div className={`font-bold mr-2 ${getColor(mapping, customData)}`} >
|
<div className={`font-bold mr-2 ${getColor(mapping, customData)}`}>
|
||||||
{formatValue(t, mapping.additionalField, getValue(mapping.additionalField.field, customData))}
|
{formatValue(t, mapping.additionalField, getValue(mapping.additionalField.field, customData))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user