Merge pull request #17474 from backstage/freben/hack-presentation
An `entityPresentationApiRef`, for rendering rich entity refs
This commit is contained in:
@@ -45,7 +45,7 @@ describe('<UserSettingsIdentityCard />', () => {
|
||||
},
|
||||
);
|
||||
|
||||
expect(screen.getByText('user:default/test-ownership')).toBeInTheDocument();
|
||||
expect(screen.getByText('foo:bar/foobar')).toBeInTheDocument();
|
||||
expect(screen.getByText('test-ownership')).toBeInTheDocument();
|
||||
expect(screen.getByText('bar/foobar')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -33,19 +33,13 @@ const Contents = () => {
|
||||
<Grid item xs={12}>
|
||||
<Typography variant="subtitle1" gutterBottom>
|
||||
User Entity:{' '}
|
||||
<EntityRefLinks
|
||||
entityRefs={[backstageIdentity.userEntityRef]}
|
||||
getTitle={ref => ref}
|
||||
/>
|
||||
<EntityRefLinks entityRefs={[backstageIdentity.userEntityRef]} />
|
||||
</Typography>
|
||||
</Grid>
|
||||
<Grid item xs={12}>
|
||||
<Typography variant="subtitle1">
|
||||
Ownership Entities:{' '}
|
||||
<EntityRefLinks
|
||||
entityRefs={backstageIdentity.ownershipEntityRefs}
|
||||
getTitle={ref => ref}
|
||||
/>
|
||||
<EntityRefLinks entityRefs={backstageIdentity.ownershipEntityRefs} />
|
||||
</Typography>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user