React CSS Properties fix
This commit is contained in:
parent
318a784451
commit
9304bd7bbe
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user