mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
Improve hu requirement (#4502)
* optimize code * optimize code * optimize code
This commit is contained in:
@@ -1,18 +1,10 @@
|
||||
import React from 'react';
|
||||
import { siteRoot, gettext } from '../../utils/constants'
|
||||
import { siteRoot, gettext } from '../../utils/constants';
|
||||
|
||||
export default function Logout() {
|
||||
const style = {
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
marginLeft: '8px',
|
||||
color: '#bbb',
|
||||
textDecoration: 'none'
|
||||
};
|
||||
const classname = "d-flex align-items-center justify-content-center"
|
||||
return (
|
||||
<a className={classname} style={style} href={`${siteRoot}accounts/logout/`} title={gettext('Logout')}>
|
||||
<a className="logout-icon" href={`${siteRoot}accounts/logout/`} title={gettext('Log out')}>
|
||||
<i className="sf3-font sf3-font-logout" style={{fontSize: '24px'}}></i>
|
||||
</a>
|
||||
)
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user