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