File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ import { useMemo } from 'react';
2
2
import { Direction , SplitType } from '../../index' ;
3
3
4
4
export function useIsLtr ( { split, direction } : { direction ?: Direction ; split : SplitType } ) {
5
- return useMemo ( ( ) => ! ( direction === 'rtl' && split === 'vertical' ) , [ split , direction ] ) ;
5
+ return useMemo ( ( ) => ( split === 'vertical' ? direction !== 'rtl' : true ) , [ split , direction ] ) ;
6
6
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export interface SplitPaneProps {
58
58
children : React . ReactChild [ ] ;
59
59
}
60
60
61
- export const SplitPane = ( { className = '' , direction = 'ltr' , ...props } : SplitPaneProps ) => {
61
+ export const SplitPane = ( { className = '' , ...props } : SplitPaneProps ) => {
62
62
const collapsedSizes = useCollapsedSizes ( props ) ;
63
63
const isLtr = useIsLtr ( props ) ;
64
64
You can’t perform that action at this time.
0 commit comments