mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
style: enable react/react-in-jsx-scope lint rule (#1107)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { TooltipProps } from '@mui/material';
|
||||
import React from 'react';
|
||||
|
||||
import { Popper, type PopperProps } from '../popper';
|
||||
import { StyledMenuWrapper } from './styles';
|
||||
|
||||
export const Menu = (props: PopperProps & Omit<TooltipProps, 'title'>) => {
|
||||
const { content, placement = 'bottom-start', children } = props;
|
||||
return content ? (
|
||||
|
||||
@@ -5,9 +5,9 @@ import {
|
||||
PropsWithChildren,
|
||||
ReactElement,
|
||||
} from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledArrow, StyledMenuItem } from './styles';
|
||||
|
||||
export type IconMenuProps = PropsWithChildren<{
|
||||
isDir?: boolean;
|
||||
icon?: ReactElement;
|
||||
|
||||
Reference in New Issue
Block a user