17782: Fixes almost all tests (4 left) mostly by fixing namespace-type imports.
[arvados-workbench2.git] / src / views / collection-content-address-panel / collection-content-address-panel.tsx
index 9fe4a56452dad16f7f048888bcdcc0c9c79899e2..13e131b04a1265b85e13cb51c8ea71f65f357c17 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
+import React from 'react';
 import {
     StyleRulesCallback,
     WithStyles,
@@ -150,7 +150,7 @@ export const CollectionsContentAddressPanel = withStyles(styles)(
             render() {
                 return <Grid item xs={12}>
                     <Button
-                        onClick={() => history.back()}
+                        onClick={() => window.history.back()}
                         className={this.props.classes.backLink}>
                         <BackIcon className={this.props.classes.backIcon} />
                         Back