File tree Expand file tree Collapse file tree
client/src/components/ProjectWizard/Common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ const useStyles = createUseStyles(theme => ({
1414 "&:hover $iconContainer" : {
1515 visibility : "visible"
1616 } ,
17- "&:hover" : {
18- cursor : "pointer"
19- }
17+ cursor : props =>
18+ props . isAdmin || props . description ? "pointer" : "default"
19+ // "&:hover": {
20+ // cursor: "pointer"
21+ // }
2022 } ,
2123 labelWrapperWithoutDesc : {
2224 flexGrow : "1" ,
@@ -25,7 +27,8 @@ const useStyles = createUseStyles(theme => ({
2527 "&:hover $iconContainer" : {
2628 visibility : "visible"
2729 } ,
28- cursor : props => ( props . isAdmin ? "pointer" : "default" )
30+ cursor : props =>
31+ props . isAdmin || props . description ? "pointer" : "default"
2932 } ,
3033 tooltipLabel : {
3134 flexGrow : "1" ,
@@ -90,11 +93,11 @@ const RuleLabel = ({
9093 setIsEditing
9194} ) => {
9295 const theme = useTheme ( ) ;
93- const classes = useStyles ( theme ) ;
94- const requiredStyle = required && classes . requiredInputLabel ;
95- const disabledStyle = ! display ;
9696 const userContext = useContext ( UserContext ) ;
9797 const isAdmin = ! ! userContext ?. account ?. isAdmin ;
98+ const classes = useStyles ( { theme, description, isAdmin } ) ;
99+ const requiredStyle = required && classes . requiredInputLabel ;
100+ const disabledStyle = ! display ;
98101
99102 const descriptionHandler = e => {
100103 e . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments