mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
* 01 fix eslint warnings * fix code warnings * fix code warnings * fix code warnings * fix code warnings * fix code warnings
22 lines
379 B
JavaScript
22 lines
379 B
JavaScript
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;
|