diff --git a/client/src/components/Layout/NavBarLogin.jsx b/client/src/components/Layout/NavBarLogin.jsx
index 378b97d9..5f1b771e 100644
--- a/client/src/components/Layout/NavBarLogin.jsx
+++ b/client/src/components/Layout/NavBarLogin.jsx
@@ -4,13 +4,19 @@ import { Link } from "react-router-dom";
import { useLocation } from "react-router";
import PropTypes from "prop-types";
import clsx from "clsx";
-import NavBarToolTip from "./NavBarToolTip";
+// import NavBarToolTip from "./NavBarToolTip";
+import { useTheme } from "react-jss";
+import Popup from "reactjs-popup";
+import { MdClose, MdWarning } from "react-icons/md";
const NavBarLogin = ({ classes, handleHamburgerMenuClick }) => {
+ const theme = useTheme();
const userContext = useContext(UserContext);
const account = userContext.account;
const [isCalculation, setIsCalculation] = useState(false);
+ const [tooltipOpen, setTooltipOpen] = useState(true);
+ const closeModal = () => setTooltipOpen(false);
const location = useLocation();
const pathname = location.pathname;
@@ -24,16 +30,14 @@ const NavBarLogin = ({ classes, handleHamburgerMenuClick }) => {
}, [pathname]);
const loginLink = (
-
diff --git a/client/src/components/ProjectWizard/WizardSidebar/EarnedPointsProgress.jsx b/client/src/components/ProjectWizard/WizardSidebar/EarnedPointsProgress.jsx
index acab8827..ec911b39 100644
--- a/client/src/components/ProjectWizard/WizardSidebar/EarnedPointsProgress.jsx
+++ b/client/src/components/ProjectWizard/WizardSidebar/EarnedPointsProgress.jsx
@@ -3,6 +3,8 @@ import PropTypes from "prop-types";
import { createUseStyles, useTheme } from "react-jss";
import ToolTipIcon from "../../ToolTip/ToolTipIcon";
import clsx from "clsx";
+import Popup from "reactjs-popup";
+import { MdClose } from "react-icons/md";
/*
See https://css-tricks.com/building-progress-ring-quickly/
@@ -107,11 +109,10 @@ const useStyles = createUseStyles({
}
});
-const EarnedPointsProgress = props => {
+const EarnedPointsProgress = ({ rulesConfig }) => {
const theme = useTheme();
const classes = useStyles({ theme });
- const { rulesConfig } = props;
const radius = DIAL_RADIUS;
const stroke = STROKE_WIDTH;
@@ -124,6 +125,8 @@ const EarnedPointsProgress = props => {
0,
target ? circumference - (earned / target) * 0.875 * circumference : 0
);
+ const tipText = `
Earned Points: ${rulesConfig.earnedPointsRule.description}
+
Target Points: ${rulesConfig.targetPointsRule.description}
`;
return (
Earned Points: " +
- rulesConfig.earnedPointsRule.description +
- "
Target Points: " +
- rulesConfig.targetPointsRule.description +
- "
"
- }
- data-iscapture="true"
- data-html="true"
- data-class={
- target > 0
- ? classes.tooltip
- : clsx(classes.tooltip, classes.noDisplay)
- }
- className={classes.tooltipIcon}
+ className={clsx(
+ classes.tooltipIcon,
+ target > 0 ? "" : classes.noDisplay
+ )}
>
-
+
+
+
+ }
+ position="right center"
+ arrow={true}
+ contentStyle={{ width: "30%" }}
+ >
+ {close => {
+ return (
+
+ );
+ }}
+