21067: Fix bug deleting projects from shared-with-me
[arvados-workbench2.git] / src / views / collection-panel / collection-panel.tsx
index eed9c7de71dd904e8d4419cc41eced617425f783..d93d6e9258673e5dc49979a6262f9a9bef47570d 100644 (file)
@@ -37,7 +37,7 @@ import { Link as ButtonLink } from '@material-ui/core';
 import { ResourceWithName, ResponsiblePerson } from 'views-components/data-explorer/renderers';
 import { MPVContainer, MPVPanelContent, MPVPanelState } from 'components/multi-panel-view/multi-panel-view';
 import { resourceIsFrozen } from 'common/frozen-resources';
-import { DefaultView } from "components/default-view/default-view";
+import { NotFoundView } from 'views/not-found-panel/not-found-panel';
 
 type CssRules = 'root'
     | 'button'
@@ -230,16 +230,10 @@ export const CollectionPanel = withStyles(styles)(connect(
                             </Card>
                         </MPVPanelContent>
                     </MPVContainer >
-                    : <Grid
-                        container
-                        alignItems="center"
-                        justify="center"
-                        style={{ minHeight: "100%" }}>
-                        <DefaultView
-                            icon={CollectionIcon}
-                            messages={["Collection not found"]}
-                        />
-                    </Grid>
+                    : <NotFoundView
+                        icon={CollectionIcon}
+                        messages={["Collection not found"]}
+                    />
                     ;
             }