Commit d1332cc2 authored by nano's avatar nano

fixed activate auth

parent 33d3118b
......@@ -12,13 +12,13 @@ function UserPanel({ dispatch, user, token }) {
<Menu trigger={['click']}>
<Menu.Item>
{
token ? <Link to="/profiles"><Format id="User-Center"/></Link> : <Link to="/signin"><Format id="sign-in"/></Link>
user.active ? <Link to="/profiles"><Format id="User-Center"/></Link> : <Link to="/signin"><Format id="sign-in"/></Link>
}
</Menu.Item>
<Menu.Divider/>
{
token &&
user.active &&
<Menu.Item >
<div
onClick={() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment