Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/sdk/admin/components/CustomField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FormLabel,
FormMessage,
} from "@radix-ui/react-form";
import { Flex, Select, Switch, Text, Input } from "@raystack/apsara-v1";
import { Flex, Select, Switch, Text, TextArea, Input } from "@raystack/apsara-v1";
import React, { CSSProperties } from "react";

import { Control, Controller, UseFormRegister } from "react-hook-form";
Expand Down Expand Up @@ -77,14 +77,14 @@
switch (variant) {
case "textarea": {
return (
<textarea
<TextArea
{...field}
defaultValue={props?.defaultValue}
placeholder={
placeholder ||
`Enter your ${title?.toLowerCase() || name}`
}
style={style}
style={{ ...style, resize: "vertical" }}
/>
);
}
Expand Down Expand Up @@ -157,7 +157,7 @@
}

default: {
const { ref, ...rest } = field;

Check warning on line 160 in web/sdk/admin/components/CustomField.tsx

View workflow job for this annotation

GitHub Actions / JS SDK Lint

'ref' is assigned a value but never used
return (
<Input
{...rest}
Expand Down
2 changes: 1 addition & 1 deletion web/sdk/admin/views/webhooks/webhooks/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function CreateWebhooks({ open = false, onClose: onCloseProp }: C
name="url"
register={methods.register}
control={methods.control}
variant="textarea"
variant="input"
style={{ width: "100%" }}
/>
<CustomFieldName
Expand Down
2 changes: 1 addition & 1 deletion web/sdk/admin/views/webhooks/webhooks/update/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function UpdateWebhooks({ open = false, webhookId: webhookIdProp,
defaultValue={webhook?.url}
register={methods.register}
control={methods.control}
variant="textarea"
variant="input"
style={{ width: "100%" }}
isLoading={isWebhookLoading}
/>
Expand Down
Loading