2018-10-03 13:12:26 -07:00
|
|
|
import React from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { Button } from 'antd';
|
|
|
|
import { Link } from 'react-router-dom';
|
|
|
|
import Result from 'ant-design-pro/lib/Result';
|
|
|
|
import { authActions } from 'modules/auth';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
logout: typeof authActions['logout'];
|
|
|
|
}
|
|
|
|
|
|
|
|
class SignInPage extends React.Component<Props> {
|
|
|
|
componentDidMount() {
|
|
|
|
this.props.logout();
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2018-10-03 19:42:20 -07:00
|
|
|
<Result
|
|
|
|
type="success"
|
|
|
|
title="You are now signed out"
|
|
|
|
actions={
|
|
|
|
<>
|
|
|
|
<Link to="/auth" style={{ marginRight: '0.5rem' }}>
|
|
|
|
<Button type="primary" size="large">
|
|
|
|
Change account
|
|
|
|
</Button>
|
|
|
|
</Link>
|
|
|
|
<Link to="/">
|
|
|
|
<Button type="default" size="large">
|
|
|
|
Return Home
|
|
|
|
</Button>
|
|
|
|
</Link>
|
|
|
|
</>
|
|
|
|
}
|
|
|
|
/>
|
2018-10-03 13:12:26 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
undefined,
|
|
|
|
{ logout: authActions.logout },
|
|
|
|
)(SignInPage);
|