Skip to content

Commit

Permalink
Added filtering to My Projet Page
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech committed Dec 2, 2023
2 parents dceebae + 479279a commit 422dbe6
Show file tree
Hide file tree
Showing 11 changed files with 618 additions and 330 deletions.
121 changes: 121 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"react-aria-modal": "^5.0.0",
"react-beautiful-dnd": "^13.1.1",
"react-csv": "^2.2.2",
"react-datepicker": "^4.24.0",
"react-dom": "^18.1.0",
"react-gtm-module": "^2.0.11",
"react-input-mask": "^2.0.4",
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Layout/ContentContainerNoSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useStyles = createUseStyles({
alignItems: "center",
minHeight: "calc(100vh - 103px - 48px)",
margin: "auto",
width: "85%"
width: "100%"
}
});

Expand Down
10 changes: 4 additions & 6 deletions client/src/components/PdfPrint/PdfPrint.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ import logo from "../../images/ladot.png";

const useStyles = createUseStyles({
Pdf: {
display: "flex",
flexDirection: "column",
flex: "1 1 auto",
minWidth: "85vw",
margin: "50px auto"
margin: "1em !important",
padding: "0 !important",
overflow: "hidden"
},
rule: {
display: "flex",
Expand Down Expand Up @@ -148,7 +146,7 @@ export const PdfPrint = forwardRef((props, ref) => {
);

return (
<div ref={ref} className={clsx("tdm-wizard-review-page", classes.Pdf)}>
<div ref={ref} className={classes.Pdf}>
<h1>
<img
className={classes.logo}
Expand Down
7 changes: 7 additions & 0 deletions client/src/components/ProjectWizard/WizardFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ const WizardFooter = ({
}) => {
const classes = useStyles();
const componentRef = useRef();
const projectNameRule = rules && rules.find(r => r.code === "PROJECT_NAME");
const projectName = projectNameRule
? projectNameRule.value
: "TDM Calculation Summary";

return (
<>
Expand Down Expand Up @@ -83,6 +87,9 @@ const WizardFooter = ({
/>
)}
content={() => componentRef.current}
documentTitle={projectName}
bodyClass="printContainer"
pageStyle=".printContainer {overflow: hidden;}"
/>
<div style={{ display: "none" }}>
<PdfPrint
Expand Down
Loading

0 comments on commit 422dbe6

Please sign in to comment.