diff --git a/src/components/InfiniteSlider/InfiniteSlider.tsx b/src/components/InfiniteSlider/InfiniteSlider.tsx index 86b672f..2236c5c 100644 --- a/src/components/InfiniteSlider/InfiniteSlider.tsx +++ b/src/components/InfiniteSlider/InfiniteSlider.tsx @@ -12,6 +12,7 @@ import { useVisibilityObserver, IsVisibleProvider } from '../../lib'; export type ScrollTo = (scrollTo: number, behaviour?: ScrollBehavior) => void; type Props = { + style?: React.HTMLAttributes['style']; innerRef: MutableRefObject; syncScrollY: MutableRefObject; getScrollTo?: (scrollTo: ScrollTo) => void; @@ -26,6 +27,7 @@ const LOAD_MORE_THRESHOLD = 500; export default function InfiniteSlider({ children, + style, innerRef: containerRef, getScrollTo, loadMore, @@ -91,6 +93,7 @@ export default function InfiniteSlider({ return (
diff --git a/src/views/Budget/Budget.tsx b/src/views/Budget/Budget.tsx index 1c240c8..817d700 100644 --- a/src/views/Budget/Budget.tsx +++ b/src/views/Budget/Budget.tsx @@ -91,6 +91,13 @@ export default function Budget({ state, dispatch }: Props) { categories={categories || []} />