[DE mobile] Fix edit header

This commit is contained in:
JuliaSvinareva 2021-04-29 14:16:24 +03:00
parent 261f4d701b
commit 2d91270e18

View file

@ -22,19 +22,19 @@ const EditHeader = props => {
<Fragment> <Fragment>
<List> <List>
<ListItem title={_t.textDifferentFirstPage}> <ListItem title={_t.textDifferentFirstPage}>
<Toggle checked={isDiffFirst} onToggleChange={() => {props.onDiffFirst(!isDiffFirst)}}/> <Toggle checked={isDiffFirst} onChange={() => {props.onDiffFirst(!isDiffFirst)}}/>
</ListItem> </ListItem>
<ListItem title={_t.textDifferentOddAndEvenPages}> <ListItem title={_t.textDifferentOddAndEvenPages}>
<Toggle checked={isDiffOdd} onToggleChange={() => {props.onDiffOdd(!isDiffOdd)}}/> <Toggle checked={isDiffOdd} onChange={() => {props.onDiffOdd(!isDiffOdd)}}/>
</ListItem> </ListItem>
<ListItem title={_t.textLinkToPrevious} className={linkToPrev===null ? 'disabled' : ''}> <ListItem title={_t.textLinkToPrevious} className={linkToPrev===null ? 'disabled' : ''}>
<Toggle checked={boolLinkToPrev} onToggleChange={() => {props.onSameAs(!boolLinkToPrev)}}/> <Toggle checked={boolLinkToPrev} onChange={() => {props.onSameAs(!boolLinkToPrev)}}/>
</ListItem> </ListItem>
</List> </List>
<BlockTitle>{_t.textPageNumbering}</BlockTitle> <BlockTitle>{_t.textPageNumbering}</BlockTitle>
<List> <List>
<ListItem title={_t.textContinueFromPreviousSection}> <ListItem title={_t.textContinueFromPreviousSection}>
<Toggle checked={startPageNumber<0} onToggleChange={() => {props.onNumberingContinue(!(startPageNumber<0), _startAt)}}/> <Toggle checked={startPageNumber<0} onChange={() => {props.onNumberingContinue(!(startPageNumber<0), _startAt)}}/>
</ListItem> </ListItem>
<ListItem title={_t.textStartAt} className={startPageNumber<0 ? 'disabled' : ''}> <ListItem title={_t.textStartAt} className={startPageNumber<0 ? 'disabled' : ''}>
{!isAndroid && <div slot='after-start'>{_startAt}</div>} {!isAndroid && <div slot='after-start'>{_startAt}</div>}