Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Dec 24, 2024
1 parent 9a8f037 commit 5c37994
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions packages/react/src/menu/popup/MenuPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import type { TransitionStatus } from '../../utils/useTransitionStatus';
import { popupStateMapping as baseMapping } from '../../utils/popupStateMapping';
import { mergeReactProps } from '../../utils/mergeReactProps';
import { transitionStatusMapping } from '../../utils/styleHookMapping';
import { useThrowIfPortalIsMissing } from '../portal/MenuPortalContext';

const customStyleHookMapping: CustomStyleHookMapping<MenuPopup.State> = {
...baseMapping,
Expand All @@ -39,8 +38,6 @@ const MenuPopup = React.forwardRef(function MenuPopup(

const { events: menuEvents } = useFloatingTree()!;

useThrowIfPortalIsMissing();

useMenuPopup({
setOpen,
menuEvents,
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/popover/popup/PopoverPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { InteractionType } from '../../utils/useEnhancedClickHandler';
import { refType } from '../../utils/proptypes';
import { mergeReactProps } from '../../utils/mergeReactProps';
import { transitionStatusMapping } from '../../utils/styleHookMapping';
import { useThrowIfPortalIsMissing } from '../portal/PopoverPortalContext';

const customStyleHookMapping: CustomStyleHookMapping<PopoverPopup.State> = {
...baseMapping,
Expand Down Expand Up @@ -48,8 +47,6 @@ const PopoverPopup = React.forwardRef(function PopoverPopup(
} = usePopoverRootContext();
const positioner = usePopoverPositionerContext();

useThrowIfPortalIsMissing();

const { getPopupProps, resolvedInitialFocus } = usePopoverPopup({
getProps: getRootPopupProps,
titleId,
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/preview-card/popup/PreviewCardPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { popupStateMapping as baseMapping } from '../../utils/popupStateMapping'
import type { TransitionStatus } from '../../utils/useTransitionStatus';
import { mergeReactProps } from '../../utils/mergeReactProps';
import { transitionStatusMapping } from '../../utils/styleHookMapping';
import { useThrowIfPortalIsMissing } from '../portal/PreviewCardPortalContext';

const customStyleHookMapping: CustomStyleHookMapping<PreviewCardPopup.State> = {
...baseMapping,
Expand All @@ -35,8 +34,6 @@ const PreviewCardPopup = React.forwardRef(function PreviewCardPopup(
const { open, transitionStatus, getRootPopupProps, popupRef } = usePreviewCardRootContext();
const { side, align } = usePreviewCardPositionerContext();

useThrowIfPortalIsMissing();

const { getPopupProps } = usePreviewCardPopup({
getProps: getRootPopupProps,
});
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/select/popup/SelectPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import type { TransitionStatus } from '../../utils/useTransitionStatus';
import { useSelectPositionerContext } from '../positioner/SelectPositionerContext';
import { mergeReactProps } from '../../utils/mergeReactProps';
import { transitionStatusMapping } from '../../utils/styleHookMapping';
import { useThrowIfPortalIsMissing } from '../portal/SelectPortalContext';

const customStyleHookMapping: CustomStyleHookMapping<SelectPopup.State> = {
...popupStateMapping,
Expand All @@ -36,8 +35,6 @@ const SelectPopup = React.forwardRef(function SelectPopup(
const { id, open, popupRef, transitionStatus, alignItemToTrigger, mounted, modal } =
useSelectRootContext();

useThrowIfPortalIsMissing();

const positioner = useSelectPositionerContext();

const { getPopupProps } = useSelectPopup();
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/tooltip/popup/TooltipPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { popupStateMapping as baseMapping } from '../../utils/popupStateMapping'
import type { TransitionStatus } from '../../utils/useTransitionStatus';
import { mergeReactProps } from '../../utils/mergeReactProps';
import { transitionStatusMapping } from '../../utils/styleHookMapping';
import { useThrowIfPortalIsMissing } from '../portal/TooltipPortalContext';

const customStyleHookMapping: CustomStyleHookMapping<TooltipPopup.State> = {
...baseMapping,
Expand All @@ -35,8 +34,6 @@ const TooltipPopup = React.forwardRef(function TooltipPopup(
useTooltipRootContext();
const { side, align } = useTooltipPositionerContext();

useThrowIfPortalIsMissing();

const state: TooltipPopup.State = React.useMemo(
() => ({
open,
Expand Down

0 comments on commit 5c37994

Please sign in to comment.