Moved ContainerModel to Interfaces + replace all components to purecomponent (#12)
Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/12
This commit is contained in:
parent
b5aa002877
commit
e3228ccffa
13 changed files with 27 additions and 30 deletions
|
@ -6,20 +6,7 @@ interface IPropertiesProps {
|
|||
onChange: (key: string, value: string) => void
|
||||
}
|
||||
|
||||
interface IPropertiesState {
|
||||
hasUpdate: boolean
|
||||
}
|
||||
|
||||
export class Properties extends React.Component<IPropertiesProps, IPropertiesState> {
|
||||
public state: IPropertiesState;
|
||||
|
||||
constructor(props: IPropertiesProps) {
|
||||
super(props);
|
||||
this.state = {
|
||||
hasUpdate: false
|
||||
};
|
||||
}
|
||||
|
||||
export class Properties extends React.PureComponent<IPropertiesProps> {
|
||||
public render() {
|
||||
if (this.props.properties === undefined) {
|
||||
return <div></div>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue