-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (25 loc) · 795 Bytes
/
index.js
File metadata and controls
30 lines (25 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* the account index component
*
*/
import React from 'react';
import { browserHistory } from 'react-router';
// import Favicon from 'react-favicon';
// load assets
import './index.scss';
// import favicon from '../../assets/images/favicon.png';
export default (props) => {
const handleLogout = (e) => {
e.preventDefault();
const { type } = props;
localStorage.removeItem('adminAccessToken');
window.location = '/';
}
return <section className='account-header'>
{/* <Favicon url={favicon}/> */}
{/* <img src={Logo} height={30}/> */}
<h2 className='logo-text-account'>Social</h2>
<p className='text-center' style={{ position: 'absolute', width: '100%', top: '0', marginTop: '10px' }}>Admin</p>
<span><a href onClick={handleLogout}>Logout</a></span>
</section>;
}