mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix: style matching bank transactions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react';
|
||||
import { useState } from 'react';
|
||||
|
||||
interface UseUncontrolledInput<T> {
|
||||
/** Value for controlled state */
|
||||
@@ -19,7 +19,7 @@ export function useUncontrolled<T>({
|
||||
initialValue,
|
||||
finalValue,
|
||||
onChange = () => {},
|
||||
}: UseUncontrolledInput<T>) {
|
||||
}: UseUncontrolledInput<T>): [T, (value: T) => void, boolean] {
|
||||
const [uncontrolledValue, setUncontrolledValue] = useState(
|
||||
initialValue !== undefined ? initialValue : finalValue,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user