The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/sidebar/search/ScrollerWithCustomProps.js

18 lines
542 B

import React, { forwardRef } from 'react';
import ScrollableContentWrapper from '../../components/ScrollableContentWrapper';
const ScrollerWithCustomProps = forwardRef(function ScrollerWithCustomProps(props, ref) {
return (
<ScrollableContentWrapper
{...props}
ref={ref}
renderView={({ style, ...props }) => <div {...props} style={{ ...style }} />}
renderTrackHorizontal={(props) => (
<div {...props} style={{ display: 'none' }} className='track-horizontal' />
)}
/>
);
});
export default ScrollerWithCustomProps;