diff --git a/src/mantine-core/src/Menu/Menu.story.tsx b/src/mantine-core/src/Menu/Menu.story.tsx index ce43670c956..366430da604 100644 --- a/src/mantine-core/src/Menu/Menu.story.tsx +++ b/src/mantine-core/src/Menu/Menu.story.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react'; +import React from 'react'; import { IconTable, IconSearch } from '@tabler/icons'; import { WithinOverlays } from '@mantine/storybook'; import { Menu } from './Menu'; @@ -87,42 +87,3 @@ export function MenuTargetWithTooltip() { ); } - -export function WithinStickyHeaderPortal() { - const [isSticky, setIsSticky] = useState(false); - - useEffect(() => { - const makeSticky = () => { - setIsSticky(window.scrollY > 0); - }; - - document.addEventListener('scroll', makeSticky); - - return () => { - document.removeEventListener('scroll', makeSticky); - }; - }); - - return ( -