mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 03:31:27 +00:00
misc: addressed review comments
This commit is contained in:
+1
-6
@@ -14,11 +14,7 @@ import {
|
||||
SelectItem
|
||||
} from "@app/components/v2";
|
||||
import { SecretPathInput } from "@app/components/v2/SecretPathInput";
|
||||
|
||||
enum WebhookType {
|
||||
GENERAL = "general",
|
||||
SLACK = "slack"
|
||||
}
|
||||
import { WebhookType } from "@app/hooks/api/webhooks/types";
|
||||
|
||||
const formSchema = z
|
||||
.object({
|
||||
@@ -116,7 +112,6 @@ export const AddWebhookForm = ({
|
||||
<Controller
|
||||
control={control}
|
||||
name="type"
|
||||
defaultValue={WebhookType.GENERAL}
|
||||
render={({ field: { onChange, ...field }, fieldState: { error } }) => (
|
||||
<FormControl
|
||||
label="Type"
|
||||
|
||||
Reference in New Issue
Block a user