File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/features/ProjectStats/ProjectActions Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export interface ProjectActionsProps {
22
22
export const ProjectActions = ( {
23
23
projectId,
24
24
isCreator,
25
- isAdministrator,
25
+ isAdministrator : isProjectAdministrator ,
26
26
isEditor,
27
27
} : ProjectActionsProps ) => {
28
28
const { data : project , isLoading } = useGetProject ( projectId ) ;
@@ -34,7 +34,7 @@ export const ProjectActions = ({
34
34
return project ? (
35
35
< Box sx = { { display : "flex" } } >
36
36
< OpenProjectButton projectId = { projectId } />
37
- { ! ! ( isEditor || isAdministrator ) && (
37
+ { ! ! ( isEditor || isProjectAdministrator ) && (
38
38
< EditProjectButton projectId = { project . project_id } >
39
39
{ ( { openDialog } ) => {
40
40
return (
@@ -50,7 +50,9 @@ export const ProjectActions = ({
50
50
</ EditProjectButton >
51
51
) }
52
52
{ ! ! isCreator && < DeleteProjectButton project = { project } /> }
53
- { ! ! ( isEditor || isAdministrator ) && < ChargesLinkIconButton productId = { project . product_id } /> }
53
+ { ! ! ( isEditor || isProjectAdministrator ) && (
54
+ < ChargesLinkIconButton productId = { project . product_id } />
55
+ ) }
54
56
</ Box >
55
57
) : null ;
56
58
} ;
You can’t perform that action at this time.
0 commit comments