Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (
<div tabindex="{-1}">
<input style="{{" value="{spinalCase(this.props.cssPropertyName)}" type="{"text"}">
:
</div>
(dataKey: string): void => {
dataConfig[dataKey] = {
value: data[dataKey],
keyWidth:
typeof spinalCase(dataKey) === "string"
? monospaceFontWidthMultiplier * spinalCase(dataKey).length
: 0,
valueWidth:
typeof data[dataKey] === "string"
? monospaceFontWidthMultiplier * data[dataKey].length
: 0,
};
}
);
(dataKey: string): void => {
dataConfig[dataKey] = {
value: data[dataKey],
keyWidth:
typeof spinalCase(dataKey) === "string"
? monospaceFontWidthMultiplier * spinalCase(dataKey).length
: 0,
valueWidth:
typeof data[dataKey] === "string"
? monospaceFontWidthMultiplier * data[dataKey].length
: 0,
};
}
);