mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
Better local limits ref
This commit is contained in:
committed by
GitHub
parent
6ac0ce824a
commit
c4ebe6d429
@@ -6,7 +6,7 @@ import { hasLength } from "src/utils";
|
||||
import type { Limit, LimitCategories } from "src/api/types";
|
||||
|
||||
type LocalLimitRef = {
|
||||
[key in LimitCategories]: HTMLInputElement;
|
||||
[key in LimitCategories]?: HTMLInputElement;
|
||||
};
|
||||
|
||||
type LocalLimitsProps = {
|
||||
@@ -17,7 +17,7 @@ type LocalLimitsProps = {
|
||||
|
||||
/** Simple wrapper hook since this ref is so specific */
|
||||
export const useLocalLimitsRef = () => {
|
||||
return useRef<LocalLimitRef>({} as LocalLimitRef);
|
||||
return useRef<LocalLimitRef>({});
|
||||
};
|
||||
|
||||
export const LocalLimits = ({
|
||||
|
||||
Reference in New Issue
Block a user