diff --git a/package-lock.json b/package-lock.json index 19d5f7d1..92b2812c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "tc-ui-toolkit", - "version": "6.2.8-beta", + "version": "6.2.9-beta.4", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "6.2.8-beta", + "name": "tc-ui-toolkit", + "version": "6.2.9-beta.4", "license": "MIT", "dependencies": { "@material-ui/core": "^4.10.2", diff --git a/package.json b/package.json index 46f592c8..af4a945f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tc-ui-toolkit", - "version": "6.2.8", + "version": "6.2.9", "description": "React components used to develop tools for the desktop app translationCore", "main": "lib/index.js", "display": "library", diff --git a/src/TranslationHelps/ExpandedHelpsModal/index.js b/src/TranslationHelps/ExpandedHelpsModal/index.js index 4987b58c..bfaec068 100644 --- a/src/TranslationHelps/ExpandedHelpsModal/index.js +++ b/src/TranslationHelps/ExpandedHelpsModal/index.js @@ -41,9 +41,11 @@ const ExpandedHelpsModal = ({ article, classes, translate, + direction, }) => ( - + @@ -78,6 +83,9 @@ ExpandedHelpsModal.propTypes = { article: PropTypes.string.isRequired, classes: PropTypes.object.isRequired, translate: PropTypes.func.isRequired, + direction: PropTypes.oneOf(['ltr', 'rtl']), }; +ExpandedHelpsModal.defaultProps = { direction: 'ltr' }; + export default withStyles(styles)(ExpandedHelpsModal); diff --git a/src/TranslationHelps/TranslationHelps.js b/src/TranslationHelps/TranslationHelps.js index 12d73cc6..f4af8455 100644 --- a/src/TranslationHelps/TranslationHelps.js +++ b/src/TranslationHelps/TranslationHelps.js @@ -29,10 +29,11 @@ const TranslationHelps = ({ isShowHelpsExpanded, // is the expanded Translation Helps modal displayed? modalTitle, // Title for the expanded helps modal translate, + direction, // language direction }) => { if (isShowHelpsSidebar) { return ( - + + article={modalArticle || article} + direction={direction} + /> ); } else { return ( - +