text: import React from 'react'
  import Navbar from '../components/Page/Navbar'
  import { postData } from '../utils'
  import { getLocation, redirect } from '../actions/index'
  import * as User from '../actions/user'
  import { connect } from 'react-redux'
  
  
  @connect((store)=>{
  	return {
  		forms: store.forms,
  		user: store.user,
  		jwtToken: store.jwtToken,
  	}
  })
  
  export default class AdminLogout extends React.Component {
  	constructor(props){
  		super(props)
  	}
  
  	componentDidMount = () => {
  		let { props } = this
  		let { dispatch } = props
  
  			User.logout(dispatch)
  			dispatch(redirect('ADMIN','login'))
  	}
  
  	render(){
  		return (
  			<div className={`shop page page-logout`}>
  			</div>
  		)
  	}
  }
  