Update changeset diff

Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
Adam Harvey
2021-02-18 15:07:34 -05:00
parent 578ddb1d00
commit 0a241bab6c
+16 -16
View File
@@ -39,22 +39,22 @@ const SystemEntityPage = ({ entity }: { entity: Entity }) => (
And the addition of a new switch case to the `EntityPage` object:
```diff
-export const EntityPage = () => {
- const { entity } = useEntity();
-
- switch (entity?.kind?.toLowerCase()) {
- case 'component':
- return <ComponentEntityPage entity={entity} />;
- case 'api':
- return <ApiEntityPage entity={entity} />;
- case 'group':
- return <GroupEntityPage entity={entity} />;
- case 'user':
- return <UserEntityPage entity={entity} />;
export const EntityPage = () => {
const { entity } = useEntity();
switch (entity?.kind?.toLowerCase()) {
case 'component':
return <ComponentEntityPage entity={entity} />;
case 'api':
return <ApiEntityPage entity={entity} />;
case 'group':
return <GroupEntityPage entity={entity} />;
case 'user':
return <UserEntityPage entity={entity} />;
+ case 'system':
+ return <SystemEntityPage entity={entity} />;
- default:
- return <DefaultEntityPage entity={entity} />;
- }
-};
default:
return <DefaultEntityPage entity={entity} />;
}
};
```