1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-11 20:01:40 +00:00
seahub/frontend/src/components/session-expired-tip.js

12 lines
406 B
JavaScript
Raw Normal View History

2019-05-12 07:05:53 +00:00
import React from 'react';
import { gettext, loginUrl } from '../utils/constants';
function SessionExpiredTip() {
return(
2019-05-17 02:55:21 +00:00
<span className="session-expired-tip">{gettext('You are logged out.')}{' '}
2019-05-12 07:05:53 +00:00
<a className="action-link session-expired-link" href={`${loginUrl}?next=${encodeURIComponent(location.href)}`}>{gettext('Login again.')}</a>
</span>
2019-05-13 03:55:49 +00:00
);
2019-05-12 07:05:53 +00:00
}
2019-05-13 03:55:49 +00:00
export default SessionExpiredTip;