mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(components): typos (#5958)
This commit is contained in:
parent
9520b3f850
commit
0f165a36c8
@ -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: {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user