Container: Support for children
This commit is contained in:
parent
5f91128c85
commit
c60a8651db
3 changed files with 26 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
|||
import * as React from 'react';
|
||||
import { AvailableContainer } from '../Interfaces/AvailableContainer';
|
||||
import { Container } from './Elements/Container';
|
||||
import { MainContainer } from './Elements/MainContainer';
|
||||
|
||||
interface ISVGProps {
|
||||
|
@ -21,12 +22,16 @@ export class SVG extends React.Component<ISVGProps> {
|
|||
xmlns
|
||||
};
|
||||
|
||||
const children: Container[] = [];
|
||||
|
||||
return (
|
||||
<svg {...properties}>
|
||||
<MainContainer
|
||||
width={this.props.MainContainer.Width}
|
||||
height={this.props.MainContainer.Height}
|
||||
/>
|
||||
>
|
||||
{ children }
|
||||
</MainContainer>
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue