From 41ca114c886797c557c705ef90cc1b7491d16d4e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 29 Mar 2020 15:09:29 -0700 Subject: Move more components to hooks --- modern/src/DevicePage.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'modern/src/DevicePage.js') diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js index 73f1dc8..e882de3 100644 --- a/modern/src/DevicePage.js +++ b/modern/src/DevicePage.js @@ -1,18 +1,19 @@ -import React, { Component } from 'react'; +import React from 'react'; import MainToobar from './MainToolbar'; import withStyles from '@material-ui/core/styles/withStyles'; import withWidth from '@material-ui/core/withWidth'; +import { useHistory } from 'react-router-dom'; const styles = theme => ({}); -class DevicePage extends Component { - render() { - return ( -
- -
- ); - } +const DevicePage = () => { + const history = useHistory(); + + return ( +
+ +
+ ); } export default withWidth()(withStyles(styles)(DevicePage)); -- cgit v1.2.3