-
- Delay
-
+
Delay
-
+
{a.delay === 0
? "Instant"
: a.delay % 1440 === 0
@@ -252,12 +169,7 @@ export default function Index() {
passHref
className="relative inline-flex w-0 flex-1 items-center justify-center rounded-bl rounded-br py-4 text-sm font-medium text-neutral-800 transition hover:bg-neutral-50 hover:text-neutral-700"
>
-
+
) : (
<>
-
+
>
)
) : (
diff --git a/packages/dashboard/src/pages/actions/new.tsx b/packages/dashboard/src/pages/actions/new.tsx
index cd864e4..f6cae77 100644
--- a/packages/dashboard/src/pages/actions/new.tsx
+++ b/packages/dashboard/src/pages/actions/new.tsx
@@ -6,14 +6,7 @@ import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { type FieldError, useForm } from "react-hook-form";
import { toast } from "sonner";
-import {
- Card,
- Dropdown,
- FullscreenLoader,
- Input,
- MultiselectDropdown,
- Toggle,
-} from "../../components";
+import { Card, Dropdown, FullscreenLoader, Input, MultiselectDropdown, Toggle } from "../../components";
import { Dashboard } from "../../layouts";
import { useActions } from "../../lib/hooks/actions";
import { useEvents } from "../../lib/hooks/events";
@@ -84,14 +77,9 @@ export default function Index() {
const create = async (data: ActionValues) => {
toast.promise(
- network.mock(
- project.secret,
- "POST",
- "/v1/actions",
- {
- ...data,
- },
- ),
+ network.mock(project.secret, "POST", "/v1/actions", {
+ ...data,
+ }),
{
loading: "Creating new action",
success: () => {
@@ -109,30 +97,17 @@ export default function Index() {
<>
-