mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
Created CardColumn and CardColumnGroup which encapsulate the layout for the two column card layout and use them for repository and plugin overview.
22 lines
574 B
JavaScript
22 lines
574 B
JavaScript
//@flow
|
|
import React from "react";
|
|
import { CardColumnGroup } from "@scm-manager/ui-components";
|
|
import type { PluginGroup } from "@scm-manager/ui-types";
|
|
import PluginEntry from "./PluginEntry";
|
|
|
|
type Props = {
|
|
group: PluginGroup
|
|
};
|
|
|
|
class PluginGroupEntry extends React.Component<Props> {
|
|
render() {
|
|
const { group } = this.props;
|
|
const entries = group.plugins.map((plugin, index) => {
|
|
return <PluginEntry plugin={plugin} key={index} />;
|
|
});
|
|
return <CardColumnGroup name={group.name} elements={entries} />;
|
|
}
|
|
}
|
|
|
|
export default PluginGroupEntry;
|