fix(components): typos (#5958)

This commit is contained in:
WK 2025-12-03 01:18:40 +08:00 committed by GitHub
parent 9520b3f850
commit 0f165a36c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -293,7 +293,7 @@ describe("InputOtp with react-hook-form", () => {
expect(onSubmit).toHaveBeenCalledTimes(1);
});
it("should work correctly wiht react-hook-form controller", async () => {
it("should work correctly with react-hook-form controller", async () => {
const {result} = renderHook(() =>
useForm({
defaultValues: {

View File

@ -24,7 +24,7 @@ export type TextareaHeightChangeMeta = {
export interface TextAreaProps extends Omit<UseInputProps<HTMLTextAreaElement>, OmittedInputProps> {
/**
* Whether the textarea should automatically grow vertically to accomodate content.
* Whether the textarea should automatically grow vertically to accommodate content.
* @default false
*/
disableAutosize?: boolean;

View File

@ -341,7 +341,7 @@ describe("Tabs", () => {
expect(tabWrapper).toHaveAttribute("data-vertical", "horizontal");
});
test("should destory inactive tab panels", () => {
test("should destroy inactive tab panels", () => {
const {container} = render(
<Tabs aria-label="Tabs test (destroyInactiveTabPanel=true)">
<Tab key="tab1" data-testid="item1" title="Tab 1">
@ -356,7 +356,7 @@ describe("Tabs", () => {
expect(container.querySelectorAll("[data-slot='panel']")).toHaveLength(1);
});
test("should not destory inactive tab panels", async () => {
test("should not destroy inactive tab panels", async () => {
const wrapper = render(
<Tabs aria-label="Tabs test (destroyInactiveTabPanel=false)" destroyInactiveTabPanel={false}>
<Tab key="tab1" data-testid="item1" title="Tab 1">

View File

@ -309,8 +309,8 @@ const CustomToastComponent = (args) => {
variant="bordered"
onPress={() => {
addToast({
title: "Sucessful!",
description: "Document uploaded to cloud successful.",
title: "Successful!",
description: "Document uploaded to cloud successfully.",
classNames: {
base: cn([
"bg-default-50 dark:bg-background shadow-sm",