Remove MainContainer as it is the same as Container
This commit is contained in:
parent
2a445cfdc2
commit
63d72b883b
4 changed files with 32 additions and 40 deletions
|
@ -1,11 +1,23 @@
|
|||
import * as React from 'react';
|
||||
import { Container } from '../SVG/Elements/Container';
|
||||
|
||||
interface ISVGSidebarProps {
|
||||
isOpen: boolean;
|
||||
onClick: () => void;
|
||||
MainContainer: Container | null,
|
||||
isOpen: boolean,
|
||||
onClick: () => void
|
||||
}
|
||||
|
||||
export class SVGSidebar extends React.Component<ISVGSidebarProps> {
|
||||
public iterateChilds(handleContainer: () => void): React.ReactNode {
|
||||
if (!this.props.MainContainer) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (this.props.MainContainer) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public render() {
|
||||
const isOpenClasses = this.props.isOpen ? 'right-0' : '-right-64';
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue