|
|
@ -54,7 +54,9 @@ function ViewSnap() { |
|
|
|
const connectedSubjects = useSelector((state) => |
|
|
|
const connectedSubjects = useSelector((state) => |
|
|
|
getSubjectsWithPermission(state, snap?.permissionName), |
|
|
|
getSubjectsWithPermission(state, snap?.permissionName), |
|
|
|
); |
|
|
|
); |
|
|
|
const permissions = useSelector((state) => getPermissions(state, snap?.id)); |
|
|
|
const permissions = useSelector( |
|
|
|
|
|
|
|
(state) => snap && getPermissions(state, snap.id), |
|
|
|
|
|
|
|
); |
|
|
|
const dispatch = useDispatch(); |
|
|
|
const dispatch = useDispatch(); |
|
|
|
const onDisconnect = (connectedOrigin, snapPermissionName) => { |
|
|
|
const onDisconnect = (connectedOrigin, snapPermissionName) => { |
|
|
|
dispatch( |
|
|
|
dispatch( |
|
|
@ -142,7 +144,9 @@ function ViewSnap() { |
|
|
|
{t('snapAccess', [snap.manifest.proposedName])} |
|
|
|
{t('snapAccess', [snap.manifest.proposedName])} |
|
|
|
</Typography> |
|
|
|
</Typography> |
|
|
|
<Box width={FRACTIONS.TEN_TWELFTHS}> |
|
|
|
<Box width={FRACTIONS.TEN_TWELFTHS}> |
|
|
|
<PermissionsConnectPermissionList permissions={permissions} /> |
|
|
|
<PermissionsConnectPermissionList |
|
|
|
|
|
|
|
permissions={permissions ?? {}} |
|
|
|
|
|
|
|
/> |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="view-snap__section"> |
|
|
|
<div className="view-snap__section"> |
|
|
|