1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

editor refactoring

This commit is contained in:
Fedor Katurov 2019-10-16 11:11:35 +07:00
parent 1f9c6ac8f7
commit bd5122f365
5 changed files with 28 additions and 40 deletions

View file

@ -14,12 +14,7 @@ interface IProps {
onScrollStop?: MouseEventHandler;
}
export const Scroll = ({
children,
className = '',
onRef = null,
...props
}: IProps) => {
const Scroll = ({ children, className = '', onRef = null, ...props }: IProps) => {
const [ref, setRef] = useState(null);
useEffect(() => {
@ -43,3 +38,5 @@ export const Scroll = ({
</Scrollbars>
);
};
export { Scroll };