Refactoring code №48109
This commit is contained in:
parent
0022202b4d
commit
60a8c3c224
|
@ -179,15 +179,14 @@ const AddOther = props => {
|
||||||
<Icon slot="media" icon="icon-pagenumber"></Icon>
|
<Icon slot="media" icon="icon-pagenumber"></Icon>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
{(isShape || isChart) ? null :
|
{(isShape || isChart) ? null :
|
||||||
<ListItem title={_t.textBreak} link={'/add-break/'} routeProps={{
|
[ <ListItem title={_t.textBreak} link={'/add-break/'} routeProps={{
|
||||||
onPageBreak: props.onPageBreak,
|
onPageBreak: props.onPageBreak,
|
||||||
onColumnBreak: props.onColumnBreak,
|
onColumnBreak: props.onColumnBreak,
|
||||||
onInsertSectionBreak: props.onInsertSectionBreak
|
onInsertSectionBreak: props.onInsertSectionBreak
|
||||||
}}>
|
}}>
|
||||||
<Icon slot="media" icon="icon-sectionbreak"></Icon>
|
<Icon slot="media" icon="icon-sectionbreak"></Icon>
|
||||||
</ListItem>
|
</ListItem>,
|
||||||
}
|
|
||||||
{(isShape || isChart) ? null :
|
|
||||||
<ListItem title={_t.textFootnote} link={'/add-footnote/'} routeProps={{
|
<ListItem title={_t.textFootnote} link={'/add-footnote/'} routeProps={{
|
||||||
getFootnoteProps: props.getFootnoteProps,
|
getFootnoteProps: props.getFootnoteProps,
|
||||||
getFootnoteStartAt: props.getFootnoteStartAt,
|
getFootnoteStartAt: props.getFootnoteStartAt,
|
||||||
|
@ -196,7 +195,8 @@ const AddOther = props => {
|
||||||
initFootnoteStartAt: props.initFootnoteStartAt
|
initFootnoteStartAt: props.initFootnoteStartAt
|
||||||
}}>
|
}}>
|
||||||
<Icon slot="media" icon="icon-footnote"></Icon>
|
<Icon slot="media" icon="icon-footnote"></Icon>
|
||||||
</ListItem>}
|
</ListItem> ]
|
||||||
|
}
|
||||||
</List>
|
</List>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue