Skip to content

Commit

Permalink
CB-4429 revert changes [2]
Browse files Browse the repository at this point in the history
  • Loading branch information
s.teleshev committed Jan 25, 2024
1 parent 4c65b06 commit 5a6b94b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webapp/packages/core-blocks/src/Split/Split.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/
import { Split as BaseSplit, SplitProps } from 'go-split';
import { observer } from 'mobx-react-lite';
import { useRef } from 'react';

import { s } from '../s';
import { useS } from '../useS';
Expand All @@ -17,10 +16,9 @@ export type ISplitProps = SplitProps;

export const Split = observer<ISplitProps>(function Split({ className, split, ...rest }) {
const styles = useS(style);
const ref = useRef<BaseSplit | null>(null);

const vertical = split === 'vertical' || split === undefined;
const horizontal = split === 'horizontal';

return <BaseSplit ref={ref} className={s(styles, { split: true, vertical, horizontal }, className)} split={split} {...rest} />;
return <BaseSplit className={s(styles, { split: true, vertical, horizontal }, className)} split={split} {...rest} />;
});

0 comments on commit 5a6b94b

Please sign in to comment.