mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-02 21:49:25 +00:00
21 lines
441 B
JavaScript
21 lines
441 B
JavaScript
import React from "react";
|
|
import styles from "./list.less";
|
|
|
|
export const List = ({ children }) => <div>{children}</div>;
|
|
|
|
export const Item = props => (
|
|
<div className={styles.item} key={props.name}>
|
|
<div>
|
|
{props.name}
|
|
<ul>{props.event ? props.event.map(renderEvent) : null}</ul>
|
|
</div>
|
|
<div>
|
|
<button onClick={props.ondelete}>delete</button>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
const renderEvent = event => {
|
|
return <li>{event}</li>;
|
|
};
|