React CSS Properties fix

This commit is contained in:
Nerdy Canuck 2021-12-19 15:45:42 -05:00
parent 318a784451
commit 9304bd7bbe

View File

@ -8,7 +8,7 @@ export interface IButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAt
export const Button: React.FunctionComponent<IButtonProps> = (props) => {
const { children, backgroundColor, color, style } = props;
let _style = style;
let _style: React.CSSProperties = style || {};
/** Override Defaults */
if (backgroundColor && _style) _style.backgroundColor = backgroundColor;