Skip to content

Commit

Permalink
changed the level 0 warning box on page 3 to what is being used in th…
Browse files Browse the repository at this point in the history
…e current design system (#1922)
  • Loading branch information
npang4 authored Oct 31, 2024
1 parent ffa4878 commit 81839f3
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions client/src/components/ProjectWizard/WizardPages/Level0Page.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import PropTypes from "prop-types";
import PlanningIcon from "../../../images/planning.png";
import { createUseStyles } from "react-jss";
import { createUseStyles, useTheme } from "react-jss";
import { MdLaunch } from "react-icons/md";
import { MdWarning } from "react-icons/md";

Expand All @@ -12,20 +12,12 @@ const useStyles = createUseStyles({
}
},
level0Container: {
textAlign: "center",

"& h1": {
fontFamily: "Oswald",
fontWeight: "bold",
fontSize: "30px",
lineHeight: "44px",
marginTop: "22px"
}
textAlign: "center"
},
level0Message: {
marginTop: "20px",
maxWidth: "800px",
backgroundColor: "#FEF4F2",
backgroundColor: "#F9DFDA",
color: "#B64E38",
fontSize: "22px",
lineHeight: "38px",
Expand All @@ -43,15 +35,16 @@ const useStyles = createUseStyles({
});

const Level0Page = ({ isLevel0 }) => {
const classes = useStyles();
const theme = useTheme();
const classes = useStyles({ theme });

return (
<>
{isLevel0 && (
<div className={classes.level0NavButtons}>
<div className={classes.level0Container}>
<img src={PlanningIcon} alt="planningIcon" />
<h1>Your project level is 0!</h1>
<h1 style={theme.typography.heading1}>Your project level is 0!</h1>
<div className={classes.level0Message}>
<MdWarning className={classes.warningIcon} alt="Warning" />
<p>
Expand Down

0 comments on commit 81839f3

Please sign in to comment.