Add style to Main Container
This commit is contained in:
parent
ed5d2daed8
commit
58ec891db3
3 changed files with 16 additions and 10 deletions
|
@ -5,19 +5,19 @@ interface IContainerProps {
|
|||
y: number,
|
||||
width: number,
|
||||
height: number,
|
||||
style: React.CSSProperties,
|
||||
}
|
||||
|
||||
export class Container extends React.Component<IContainerProps> {
|
||||
public render() {
|
||||
const properties = {
|
||||
x: this.props.x,
|
||||
y: this.props.y,
|
||||
width: this.props.width,
|
||||
height: this.props.height
|
||||
};
|
||||
|
||||
return (
|
||||
<rect {...properties} />
|
||||
<rect
|
||||
x={this.props.x}
|
||||
y={this.props.y}
|
||||
width={this.props.width}
|
||||
height={this.props.height}
|
||||
style={this.props.style}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue