fix errors

This commit is contained in:
karenvicent committed 2025-08-31 10:18:15 -04:00
1 parent 7c8ab64e34
commit e45dd4240e
6 files changed
+95 -70

No files matched your search

@@ -4,7 +4,7 @@ import { Tooltip, useTheme } from "@mui/material";
import { useTranslation } from "react-i18next";
import PropTypes from "prop-types";
const PasswordTooltip = ({ feedback, form, children, offset = [0, 0] }) => {
const PasswordTooltip = ({ feedback, form, children }) => {
const theme = useTheme();
const { t } = useTranslation();
const hasPassword = form.password.length > 0;
@@ -73,16 +73,6 @@ const PasswordTooltip = ({ feedback, form, children, offset = [0, 0] }) => {
</Stack>
}
slotProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: offset,
},
},
],
},
tooltip: {
sx: {
backgroundColor: theme.palette.tertiary.background,
@@ -103,14 +93,14 @@ const PasswordTooltip = ({ feedback, form, children, offset = [0, 0] }) => {
},
}}
>
{children}
<span style={{ display: "inline-block", width: "100%" }}>{children}</span>
</Tooltip>
);
};
PasswordTooltip.propTypes = {
feedback: PropTypes.shape({
length: PropTypes.string.isRequired,
length: PropTypes.string,
special: PropTypes.string,
number: PropTypes.string,
uppercase: PropTypes.string,
@@ -121,7 +111,6 @@ PasswordTooltip.propTypes = {
password: PropTypes.string.isRequired,
}),
children: PropTypes.node,
offset: PropTypes.arrayOf(PropTypes.number),
};
export default PasswordTooltip;