This commit is contained in:
Alexey Kasyanchuk
2018-11-11 23:59:38 +03:00
parent 6afe85798a
commit aa75d75448
13 changed files with 129 additions and 129 deletions

View File

@ -15,31 +15,31 @@ class PagesPie extends Component {
delete params.replace;
}
if (Array.isArray(pages)) {
for (let i in pages) {
this.pie.push({
Page: pages[i],
params: params
});
}
} else {
this.pie.push({
Page: pages,
params: params
});
}
if(this._mounted)
this.forceUpdate()
}
componentWillMount()
{
this._mounted = true
}
for (let i in pages) {
this.pie.push({
Page: pages[i],
params: params
});
}
} else {
this.pie.push({
Page: pages,
params: params
});
}
if(this._mounted)
this.forceUpdate()
}
componentWillMount()
{
this._mounted = true
}
componentWillUnmount()
{
this._mounted = false
}
componentWillUnmount()
{
this._mounted = false
}
close(count) {
if (count && typeof count === 'number') {
@ -59,7 +59,7 @@ class PagesPie extends Component {
}
// ОТРИСОВКА
render() {
if (this.pie.length > 0) {
if (this.pie.length > 0) {
return (
<div
className={'pie full-size ' + (this.props.className || '')}