polishing

This commit is contained in:
MuhammadKhalilzadeh committed 2024-05-14 11:06:34 +03:30
1 parent 5388678859
commit d38011cbcf
30 files changed
+183 -64

No files matched your search

@@ -3,6 +3,7 @@ import React from "react";
import { styled } from "@mui/material/styles";
import Tooltip, { TooltipProps, tooltipClasses } from "@mui/material/Tooltip";
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
import { useTheme } from "@mui/material";
const CustomizedTooltip = styled(
({ className, placement, arrow, ...props }: TooltipProps) => (
@@ -22,9 +23,17 @@ const CustomizedTooltip = styled(
},
}));
function TooltipWithTail({ placement, arrow = false, title, text }) {
const TooltipWithTail = ({ placement, arrow = false, title, text }) => {
const theme = useTheme();
const fontLookup = {
default: theme.font.default.font,
};
const fontFamily = fontLookup["default"];
return (
<div>
<div style={{ fontFamily: fontFamily }}>
<CustomizedTooltip
arrow={arrow}
placement={placement}
@@ -40,6 +49,6 @@ function TooltipWithTail({ placement, arrow = false, title, text }) {
</CustomizedTooltip>
</div>
);
}
};
export default TooltipWithTail;