Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 19104a2

Browse files
committed
fix: Fragment import
1 parent 42c0bf9 commit 19104a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/extenders/Menu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
2-
import { Fragment, useMemo, useState, type ReactNode } from "react";
2+
import React, { useMemo, useState, type ReactNode } from "react";
33
import { useTheme } from "../../context/Theme.context";
44
import { mergeClass } from "../../utils/css";
55
import type { Component, GetSet } from "../../utils/types";
@@ -23,10 +23,10 @@ export interface MenuProps {
2323
}
2424

2525
const divide = (element: JSX.Element, index: number, arr: JSX.Element[]) => (
26-
<Fragment key={index}>
26+
<React.Fragment key={index}>
2727
{element}
2828
{((index === 0 && arr.length > 1) || index < arr.length - 1) && <Divider horizontal className="bg-main-11" />}
29-
</Fragment>
29+
</React.Fragment>
3030
);
3131

3232
export function SubMenuResponsiv({ children, options, size, look, className }: Component<MenuProps & BoxProps>) {

0 commit comments

Comments
 (0)