forked from github/plane
726f4668e0
* refactor: webhooks workflow * chore: update delete modal content
20 lines
504 B
TypeScript
20 lines
504 B
TypeScript
import { observer } from "mobx-react-lite";
|
|
// mobx store
|
|
import { useMobxStore } from "lib/mobx/store-provider";
|
|
// components
|
|
import { WebhooksListItem } from "./webhooks-list-item";
|
|
|
|
export const WebhooksList = observer(() => {
|
|
const {
|
|
webhook: { webhooks },
|
|
} = useMobxStore();
|
|
|
|
return (
|
|
<div className="h-full w-full overflow-y-auto">
|
|
{Object.values(webhooks ?? {}).map((webhook) => (
|
|
<WebhooksListItem key={webhook.id} webhook={webhook} />
|
|
))}
|
|
</div>
|
|
);
|
|
});
|