Skip to content

Commit 58e8585

Browse files
author
ugogo
committed
Fix named export
1 parent e097d65 commit 58e8585

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ type Props = {
1515
placeholder?: string;
1616
};
1717

18-
export default ({ length = 4, onChange, placeholder = '·' }: Props) => {
18+
const ReactInputVerificationCode = ({
19+
length = 4,
20+
onChange,
21+
placeholder = '·',
22+
}: Props) => {
1923
const [activeIndex, setActiveIndex] = React.useState<number>(-1);
2024
const [value, setValue] = React.useState<string[]>(
2125
new Array(length).fill(placeholder)
@@ -156,3 +160,5 @@ export default ({ length = 4, onChange, placeholder = '·' }: Props) => {
156160
</React.Fragment>
157161
);
158162
};
163+
164+
export default ReactInputVerificationCode;

0 commit comments

Comments
 (0)