mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
27 lines
612 B
JavaScript
27 lines
612 B
JavaScript
//@flow
|
|
import React from "react";
|
|
import type { Plugin } from "@scm-manager/ui-types";
|
|
import PluginGroupEntry from "../components/PluginGroupEntry";
|
|
import groupByCategory from "./groupByCategory";
|
|
|
|
type Props = {
|
|
plugins: Plugin[]
|
|
};
|
|
|
|
class PluginList extends React.Component<Props> {
|
|
render() {
|
|
const { plugins } = this.props;
|
|
|
|
const groups = groupByCategory(plugins);
|
|
return (
|
|
<div className="content is-plugin-page">
|
|
{groups.map(group => {
|
|
return <PluginGroupEntry group={group} key={group.name} />;
|
|
})}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default PluginList;
|