mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: page mode shortcut (#3097)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { TooltipProps } from '@mui/material';
|
||||
import { NoSsr } from '@mui/material';
|
||||
import type { ReactElement } from 'react';
|
||||
|
||||
import { styled } from '../../styles';
|
||||
import { Popper, type PopperProps } from '../popper';
|
||||
@@ -18,6 +18,11 @@ const StyledTooltip = styled(StyledPopperContainer)(() => {
|
||||
};
|
||||
});
|
||||
|
||||
interface TooltipProps {
|
||||
content: string | ReactElement<any, any>;
|
||||
placement?: PopperProps['placement'];
|
||||
children: ReactElement<any, any>;
|
||||
}
|
||||
export const Tooltip = (props: PopperProps & Omit<TooltipProps, 'title'>) => {
|
||||
const { content, placement = 'top-start', children } = props;
|
||||
return (
|
||||
|
||||
@@ -405,5 +405,6 @@
|
||||
"Workspace Settings with name": "{{name}}'s Settings",
|
||||
"You can customize your workspace here.": "You can customise your workspace here.",
|
||||
"Font Style": "Font Style",
|
||||
"Choose your font style": "Choose your font style"
|
||||
"Choose your font style": "Choose your font style",
|
||||
"Switch": "Switch"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user