Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
phulin committed Dec 1, 2024
1 parent 0524a22 commit 44ef945
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/components/ui/input-group.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import type { BoxProps, InputElementProps } from "@chakra-ui/react"
import { Group, InputElement } from "@chakra-ui/react"
import * as React from "react"
import type { BoxProps, InputElementProps } from "@chakra-ui/react";
import { Group, InputElement } from "@chakra-ui/react";
import * as React from "react";

export interface InputGroupProps extends BoxProps {
startElementProps?: InputElementProps
endElementProps?: InputElementProps
startElement?: React.ReactNode
endElement?: React.ReactNode
children: React.ReactElement
startOffset?: InputElementProps["paddingStart"]
endOffset?: InputElementProps["paddingEnd"]
startElementProps?: InputElementProps;
endElementProps?: InputElementProps;
startElement?: React.ReactNode;
endElement?: React.ReactNode;
children: React.ReactElement;
startOffset?: InputElementProps["paddingStart"];
endOffset?: InputElementProps["paddingEnd"];
}

export const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>(
function InputGroup(props, ref) {
(props, ref) => {
const {
startElement,
startElementProps,
Expand All @@ -23,7 +23,7 @@ export const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>(
startOffset = "6px",
endOffset = "6px",
...rest
} = props
} = props;

return (
<Group ref={ref} {...rest}>
Expand All @@ -45,6 +45,6 @@ export const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>(
</InputElement>
)}
</Group>
)
);
},
)
);

0 comments on commit 44ef945

Please sign in to comment.