This commit is contained in:
Alexey Kasyanchuk
2018-08-08 23:55:47 +03:00
parent 34cdc7fb09
commit ce618f4408
17 changed files with 67 additions and 66 deletions

View File

@ -58,13 +58,13 @@ class PagesPie extends Component {
{
this.pie.map(({Page, params}, index) => {
let focus = false;
if (index === this.pie.length-1) {
if (index === this.pie.length - 1) {
focus = true;
}
return (
<Page
focused={focus}
closeHandler={() => { index> 0 ? this.close() : null}}
closeHandler={() => { index > 0 ? this.close() : null}}
index={index}
key={index}
ref={index}