mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 00:00:00 +00:00
feat: sdoc diff (#5465)
* feat: sdoc diff * feat: add changes * feat: optimize code
This commit is contained in:
21
frontend/src/components/common/go-back/index.js
Normal file
21
frontend/src/components/common/go-back/index.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
import './index.css';
|
||||
|
||||
class GoBack extends Component {
|
||||
|
||||
onBackClick = (event) => {
|
||||
event.preventDefault();
|
||||
window.history.back();
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="go-back" onClick={this.onBackClick}>
|
||||
<span className="fas fa-chevron-left"></span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default GoBack;
|
Reference in New Issue
Block a user