mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
delete unused module and remove its usage
This commit is contained in:
@@ -1,32 +1,20 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { fetchRepositoriesIfNeeded } from '../modules/repositories';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
|
||||
type Props = {
|
||||
login: boolean,
|
||||
error: Error,
|
||||
repositories: any,
|
||||
fetchRepositoriesIfNeeded: () => void
|
||||
}
|
||||
|
||||
class Repositories extends React.Component<Props> {
|
||||
|
||||
componentDidMount() {
|
||||
this.props.fetchRepositoriesIfNeeded();
|
||||
}
|
||||
|
||||
render() {
|
||||
const { login, error, repositories } = this.props;
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h1>SCM</h1>
|
||||
<h2>Startpage</h2>
|
||||
<h2>Repositories will be shown here.</h2>
|
||||
<Link to='/users'>Users hier!</Link>
|
||||
</div>
|
||||
)
|
||||
@@ -36,16 +24,4 @@ class Repositories extends React.Component<Props> {
|
||||
|
||||
}
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
return null;
|
||||
};
|
||||
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
return {
|
||||
fetchRepositoriesIfNeeded: () => {
|
||||
dispatch(fetchRepositoriesIfNeeded())
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(Repositories);
|
||||
export default (Repositories);
|
||||
|
||||
Reference in New Issue
Block a user