text was styled / retry option was commented
This commit is contained in:
parent
e405b6ff44
commit
13cc4f3f4e
@ -1,15 +1,16 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import TableRow from "@docspace/components/table-container/TableRow";
|
import TableRow from "@docspace/components/table-container/TableRow";
|
||||||
import TableCell from "@docspace/components/table-container/TableCell";
|
import TableCell from "@docspace/components/table-container/TableCell";
|
||||||
import { FailBadge } from "../FailBadge";
|
import Text from "@docspace/components/text";
|
||||||
import { SuccessBadge } from "../SuccessBadge";
|
|
||||||
import { ToggleButton } from "@docspace/components"
|
import { ToggleButton } from "@docspace/components";
|
||||||
import SettingsIcon from "PUBLIC_DIR/images/settings.webhooks.react.svg?url";
|
import SettingsIcon from "PUBLIC_DIR/images/settings.webhooks.react.svg?url";
|
||||||
import HistoryIcon from "PUBLIC_DIR/images/history.react.svg?url";
|
import HistoryIcon from "PUBLIC_DIR/images/history.react.svg?url";
|
||||||
import RetryIcon from "PUBLIC_DIR/images/refresh.react.svg?url";
|
import RetryIcon from "PUBLIC_DIR/images/refresh.react.svg?url";
|
||||||
import DeleteIcon from "PUBLIC_DIR/images/delete.react.svg?url";
|
import DeleteIcon from "PUBLIC_DIR/images/delete.react.svg?url";
|
||||||
import WebhookDialog from "../WebhookDialog";
|
import WebhookDialog from "../WebhookDialog";
|
||||||
import { DeleteWebhookDialog } from "../DeleteWebhookDialog";
|
import { DeleteWebhookDialog } from "../DeleteWebhookDialog";
|
||||||
|
import { StatusBadge } from "../StatusBadge";
|
||||||
|
|
||||||
export const WebhooksTableRow = ({
|
export const WebhooksTableRow = ({
|
||||||
webhook,
|
webhook,
|
||||||
@ -46,12 +47,12 @@ export const WebhooksTableRow = ({
|
|||||||
icon: HistoryIcon,
|
icon: HistoryIcon,
|
||||||
onClick: () => console.log("webhooks history"),
|
onClick: () => console.log("webhooks history"),
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
key: "Retry dropdownItem",
|
// key: "Retry dropdownItem",
|
||||||
label: "Retry",
|
// label: "Retry",
|
||||||
icon: RetryIcon,
|
// icon: RetryIcon,
|
||||||
onClick: () => retryWebhookEvent(webhook.id),
|
// onClick: () => retryWebhookEvent(webhook.id),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
key: "Separator dropdownItem",
|
key: "Separator dropdownItem",
|
||||||
isSeparator: true,
|
isSeparator: true,
|
||||||
@ -68,16 +69,16 @@ export const WebhooksTableRow = ({
|
|||||||
<>
|
<>
|
||||||
<TableRow contextOptions={contextOptions}>
|
<TableRow contextOptions={contextOptions}>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
{webhook.title}{" "}
|
<Text as="span" fontWeight={600}>
|
||||||
{webhook.responseStatus === "success" ? (
|
{webhook.title}{" "}
|
||||||
<SuccessBadge label={webhook.responseCode} />
|
</Text>
|
||||||
) : webhook.responseStatus === "error" ? (
|
<StatusBadge status={webhook.responseCode} />
|
||||||
<FailBadge label={webhook.responseCode} />
|
</TableCell>
|
||||||
) : (
|
<TableCell>
|
||||||
""
|
<Text as="span" fontSize="11px" color="#A3A9AE" fontWeight={600}>
|
||||||
)}
|
{webhook.url}
|
||||||
|
</Text>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>{webhook.url}</TableCell>
|
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
className="toggle toggleButton"
|
className="toggle toggleButton"
|
||||||
|
Loading…
Reference in New Issue
Block a user