Skip to content

Commit

Permalink
fix: 修复 ContextMenu.Item 类型错误 (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
heiyexing authored Nov 27, 2023
1 parent bc0cfd4 commit 8c69d1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ContextMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React, { useState, useMemo, useEffect } from 'react';
import classNames from 'classnames';
import React, { useEffect, useMemo, useState } from 'react';
import { useScene } from '../LarkMap/hooks/use-scene';
import { Marker } from '../Marker';
import { CLS_PREFIX } from './constant';
import type { ContextMenuProps } from './types';
import { ContextMenuItem } from './ContextMenuItem';
import './index.less';
import type { ContextMenuProps } from './types';

export interface ContextMenuPropsType extends React.FC<ContextMenuProps> {
Item?: typeof ContextMenuItem;
Item: typeof ContextMenuItem;
}

const ContextMenu: ContextMenuPropsType = (props) => {
Expand Down

0 comments on commit 8c69d1d

Please sign in to comment.