Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
keyurparalkar committed Sep 30, 2023
1 parent e21f3e2 commit 259c453
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package/lib/hook/usePasscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ import {
} from "../utils";

type PasscodeProps = {
count: number;
count1: number;
isAlphaNumeric?: boolean;
};

const usePasscode = (props: PasscodeProps) => {
const { count, isAlphaNumeric = false } = props;
const filledArray = useMemo(() => Array(count).fill("", 0, count), [count]);
const { count1, isAlphaNumeric = false } = props;
const filledArray = useMemo(
() => Array(count1).fill("", 0, count1),
[count1]
);
const [array, setArray] = useState(filledArray);
const [currentFocusedIndex, setCurrentFocusedIndex] = useState(0);
const inputRefs = useRef<Array<HTMLInputElement> | []>([]);
Expand Down

0 comments on commit 259c453

Please sign in to comment.