1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00
Files
seahub/frontend/src/components/common/go-back/index.js
Michael An 14ce391007 Fix eslint warnings (#5635)
* 01 fix eslint warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings
2023-09-13 08:40:50 +08:00

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;