11import React from 'react'
22import Head from '../../../components/head' ;
3- import Backdrop from '@material-ui/core/Backdrop' ;
43import CircularProgress from '@material-ui/core/CircularProgress' ;
54import Layout from "../../../components/layout" ;
65import ProductLinkForm from "../../../forms/ProductLink" ;
@@ -11,7 +10,6 @@ import * as couponController from '../../../controllers/v2/couponsV2'
1110import ProductLinkCard from "../../../components/ProductLinkCard"
1211import ErrorHandler from "../../../helpers/ErrorHandler" ;
1312import Swal from 'sweetalert2' ;
14- import { withStyles } from '@material-ui/core' ;
1513import Table from '@material-ui/core/Table' ;
1614import TableBody from '@material-ui/core/TableBody' ;
1715import TableCell from '@material-ui/core/TableCell' ;
@@ -21,13 +19,6 @@ import TableHead from '@material-ui/core/TableHead';
2119import TableRow from '@material-ui/core/TableRow' ;
2220import Typography from '@material-ui/core/Typography' ;
2321
24- const useStyles = theme => ( {
25- backdrop : {
26- zIndex : theme . zIndex . drawer + 1 ,
27- color : '#fff' ,
28- }
29- } ) ;
30-
3122class GenerateLink extends React . Component {
3223
3324 constructor ( props ) {
@@ -293,7 +284,6 @@ class GenerateLink extends React.Component {
293284 } ;
294285
295286 render ( ) {
296- const { classes } = this . props ;
297287 return (
298288 < div >
299289 < Head title = "Coding Blocks | Dukaan | Generate Product Link" />
@@ -327,7 +317,7 @@ class GenerateLink extends React.Component {
327317 < b > User Details </ b >
328318 </ Typography >
329319
330- < Table className = { classes . table } aria-label = "simple table" >
320+ < Table aria-label = "simple table" >
331321 < TableHead >
332322 < TableRow >
333323 < TableCell align = "center" > Name</ TableCell >
@@ -408,4 +398,4 @@ class GenerateLink extends React.Component {
408398 }
409399}
410400
411- export default withStyles ( useStyles ) ( GenerateLink )
401+ export default GenerateLink
0 commit comments