Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/PDFTron/webviewer-ui into…
Browse files Browse the repository at this point in the history
… 7.0
  • Loading branch information
kristianhein committed Jul 23, 2020
2 parents 6d509a4 + f8ce5b9 commit 208d908
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/components/MenuOverlay/MenuOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DataElementWrapper from 'components/DataElementWrapper';
import Icon from 'components/Icon';
import { workerTypes } from 'constants/types';
import core from 'core';
import { isIOS } from 'helpers/device';
import { isIOS, isIE } from 'helpers/device';
import downloadPdf from 'helpers/downloadPdf';
import openFilePicker from 'helpers/openFilePicker';
import print from 'helpers/print';
Expand Down Expand Up @@ -86,16 +86,17 @@ function MenuOverlay() {
<div className="MenuLabel">{t('action.print')}</div>
</button>
</DataElementWrapper>
<div className="row">
<button
className="MenuItem"
onClick={activeTheme === 'dark' ? setActiveLightTheme : setActiveDarkTheme}
aria-label={activeTheme === 'dark' ? t('action.lightMode') : t('action.darkMode')}
>
<Icon className="MenuIcon" glyph={`icon - header - mode - ${activeTheme === 'dark' ? 'day' : 'night'}`} />
<div className="MenuLabel">{activeTheme === 'dark' ? t('action.lightMode') : t('action.darkMode')}</div>
</button>
</div>
{!isIE && (
<div className="row">
<button
className="MenuItem"
onClick={activeTheme === 'dark' ? setActiveLightTheme : setActiveDarkTheme}
aria-label={activeTheme === 'dark' ? t('action.lightMode') : t('action.darkMode')}
>
<Icon className="MenuIcon" glyph={`icon - header - mode - ${activeTheme === 'dark' ? 'day' : 'night'}`} />
<div className="MenuLabel">{activeTheme === 'dark' ? t('action.lightMode') : t('action.darkMode')}</div>
</button>
</div>)}
</FlyoutMenu>
);
}
Expand Down

0 comments on commit 208d908

Please sign in to comment.