}
export default function ProfileDetails(props: Props) {
- const { profile } = props;
+ const { organization, profile } = props;
return (
<div>
<div className="quality-profile-grid">
<div className="quality-profile-grid-left">
- <ProfileRules {...props} />
- <ProfileExporters {...props} />
+ <ProfileRules organization={organization} profile={profile} />
+ <ProfileExporters
+ exporters={props.exporters}
+ organization={organization}
+ profile={profile}
+ />
{profile.actions &&
profile.actions.edit &&
!profile.isBuiltIn && (
- <ProfilePermissions
- organization={props.organization || undefined}
- profile={profile}
- />
+ <ProfilePermissions organization={organization || undefined} profile={profile} />
)}
</div>
<div className="quality-profile-grid-right">
- <ProfileInheritance {...props} />
- <ProfileProjects
- organization={props.organization}
+ <ProfileInheritance
+ organization={organization}
profile={profile}
+ profiles={props.profiles}
updateProfiles={props.updateProfiles}
/>
+ <ProfileProjects organization={organization} profile={profile} />
</div>
</div>
</div>
className="quality-profile-grid-left"
>
<ProfileRules
- exporters={Array []}
organization="org"
profile={
Object {
},
}
}
- profiles={Array []}
- updateProfiles={[MockFunction]}
/>
<ProfileExporters
exporters={Array []}
},
}
}
- profiles={Array []}
- updateProfiles={[MockFunction]}
/>
<ProfilePermissions
organization="org"
className="quality-profile-grid-right"
>
<ProfileInheritance
- exporters={Array []}
organization="org"
profile={
Object {
},
}
}
- updateProfiles={[MockFunction]}
/>
</div>
</div>
className="quality-profile-grid-left"
>
<ProfileRules
- exporters={Array []}
organization="org"
profile={Object {}}
- profiles={Array []}
- updateProfiles={[MockFunction]}
/>
<ProfileExporters
exporters={Array []}
organization="org"
profile={Object {}}
- profiles={Array []}
- updateProfiles={[MockFunction]}
/>
</div>
<div
className="quality-profile-grid-right"
>
<ProfileInheritance
- exporters={Array []}
organization="org"
profile={Object {}}
profiles={Array []}
<ProfileProjects
organization="org"
profile={Object {}}
- updateProfiles={[MockFunction]}
/>
</div>
</div>