Skip to content

Commit

Permalink
isRtl
Browse files Browse the repository at this point in the history
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
  • Loading branch information
oliviertassinari and mnajdova authored Apr 10, 2021
1 parent a5e3957 commit 94d4a52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/material-ui-lab/src/TreeView/TreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const TreeView = React.forwardRef(function TreeView(inProps, ref) {
selected: selectedProp,
...other
} = props;
// use the `isRtl` from the props after the buildAPI script support it
const theme = useTheme();
const isRtl = theme.direction === 'rtl';

Expand Down

0 comments on commit 94d4a52

Please sign in to comment.