switch shared notes hide btn icon for RTL

This commit is contained in:
KDSBrowne 2019-08-27 14:56:50 +00:00
parent dbf29dc832
commit ffc5b40e06
2 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,7 @@ const Note = (props) => {
const {
isLocked,
intl,
isRTL,
} = props;
const url = isLocked ? NoteService.getReadOnlyURL() : NoteService.getNoteURL();
@ -55,7 +56,7 @@ const Note = (props) => {
}}
aria-label={intl.formatMessage(intlMessages.hideNoteLabel)}
label={intl.formatMessage(intlMessages.title)}
icon="left_arrow"
icon={isRTL ? "right_arrow" : "left_arrow"}
className={styles.hideBtn}
/>
</div>

View File

@ -15,8 +15,9 @@ class NoteContainer extends PureComponent {
export default withTracker(() => {
const isLocked = NoteService.isLocked();
const isRTL = document.documentElement.getAttribute('dir') === 'rtl';
return {
isLocked,
isRTL,
};
})(NoteContainer);