mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed popeper placement
This commit is contained in:
parent
0a5caf6bda
commit
03ab52f814
3 changed files with 8 additions and 9 deletions
|
@ -1,16 +1,14 @@
|
|||
import React, { DetailsHTMLAttributes, FC } from 'react';
|
||||
import StickyBox from 'react-stickynode';
|
||||
import StickyBox from 'react-sticky-box';
|
||||
|
||||
interface IProps extends DetailsHTMLAttributes<HTMLDivElement> {
|
||||
offsetTop?: number;
|
||||
}
|
||||
|
||||
const Sticky: FC<IProps> = ({ children, offsetTop = 65 }) => {
|
||||
return (
|
||||
<StickyBox offsetTop={offsetTop} offsetBottom={10}>
|
||||
{children}
|
||||
</StickyBox>
|
||||
);
|
||||
};
|
||||
const Sticky: FC<IProps> = ({ children, offsetTop = 65 }) => (
|
||||
<StickyBox offsetTop={offsetTop} offsetBottom={10}>
|
||||
{children}
|
||||
</StickyBox>
|
||||
);
|
||||
|
||||
export { Sticky };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue