Skip to content

Commit

Permalink
Fix controlled select disable prop (#1560)
Browse files Browse the repository at this point in the history
* Fix controlled select disable prop

* Fix work plan staff view button
  • Loading branch information
jadmsaadaot authored Jan 8, 2024
1 parent 924cad6 commit 62d1909
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
20 changes: 2 additions & 18 deletions epictrack-web/src/components/myWorkplans/Card/CardFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,10 @@ const CardFooter = ({ workplan }: CardProps) => {
</Grid>
<Grid item justifyContent={"flex-end"}>
<Button
variant="text"
sx={{
backgroundColor: "inherit",
borderColor: "transparent",
borderRadius: "4px",
width: "80px",
border: "2px solid var(--Primary-Main, #036)",
":hover": {
borderRadius: "4px",
border: "var(--Primary-Main, #036);",
backgroundColor: Palette.primary.main,
color: Palette.white,
},
":active": {
backgroundColor: Palette.primary.dark,
},
}}
variant="outlined"
onClick={() => navigate(`/work-plan?work_id=${workplan.id}`)}
>
<ETCaption2 bold>View</ETCaption2>
View
</Button>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const ControlledSelectV2: React.ForwardRefRenderFunction<
if (onHandleChange !== undefined) onHandleChange(v);
return onChange(v);
}}
disabled={disabled}
error={!!error}
helperText={String(error?.message) || helperText}
/>
Expand Down

0 comments on commit 62d1909

Please sign in to comment.