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:
parent
1f9c6ac8f7
commit
bd5122f365
5 changed files with 28 additions and 40 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue