Skip to content

Commit

Permalink
Merge pull request #1665 from djnunez-aot/work-title
Browse files Browse the repository at this point in the history
Create Work Modal - Modal Title
  • Loading branch information
jadmsaadaot authored Jan 15, 2024
2 parents 0aead41 + 8b1c6b6 commit 2d2e4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions epictrack-web/src/components/work/WorkForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ export default function WorkForm({ ...props }) {
}, [ctx.id]);

React.useEffect(() => {
ctx.setTitle(
ctx.item ? work?.title + " - " + work?.work_type?.name : "Create Work"
);
ctx.setTitle(ctx.item ? work?.title : "Create Work");
}, [ctx.title, ctx.item]);

const methods = useForm({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Grid } from "@mui/material";
import ProjectDetails from "./ProjectDetails";
import WorkDetials from "./WorkDetails";
import WorkDetails from "./WorkDetails";

const AboutDetials = () => {
return (
Expand All @@ -9,7 +9,7 @@ const AboutDetials = () => {
<ProjectDetails />
</Grid>
<Grid item xs={6}>
<WorkDetials />
<WorkDetails />
</Grid>
</Grid>
);
Expand Down

0 comments on commit 2d2e4e0

Please sign in to comment.