1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +00:00

Session optimization (#3423)

This commit is contained in:
zxj96
2019-05-12 15:05:53 +08:00
committed by Daniel Pan
parent 4539dd88e6
commit edc223e520
5 changed files with 61 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
import React from 'react';
import { gettext, loginUrl } from '../utils/constants';
function SessionExpiredTip() {
return(
<span className="session-expired-tip">{gettext('You are log out.')}{' '}
<a className="action-link session-expired-link" href={`${loginUrl}?next=${encodeURIComponent(location.href)}`}>{gettext('Login again.')}</a>
</span>
)
}
export default SessionExpiredTip