mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 02:06:18 +01:00
25 lines
491 B
JavaScript
25 lines
491 B
JavaScript
|
|
//@flow
|
||
|
|
import React from "react";
|
||
|
|
import type { Plugins } from "@scm-manager/ui-types";
|
||
|
|
|
||
|
|
type Props = {
|
||
|
|
plugins: Plugins[]
|
||
|
|
};
|
||
|
|
|
||
|
|
class RepositoryList extends React.Component<Props> {
|
||
|
|
render() {
|
||
|
|
const { plugins } = this.props;
|
||
|
|
|
||
|
|
const groups = groupByNamespace(plugins);
|
||
|
|
return (
|
||
|
|
<div className="content">
|
||
|
|
{groups.map(group => {
|
||
|
|
return <PluginEntry group={group} key={group.name} />;
|
||
|
|
})}
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default RepositoryList;
|