frontend: default export useRenderCount hook

This commit is contained in:
Mose Müller
2024-07-24 15:06:36 +02:00
parent 4ed8899708
commit c396de75fb
11 changed files with 11 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ import "../App.css";
import { LevelName } from "./NotificationsComponent";
import { SerializedObject } from "../types/SerializedObject";
import { QuantityMap } from "../types/QuantityMap";
import { useRenderCount } from "../hooks/useRenderCount";
import useRenderCount from "../hooks/useRenderCount";
// TODO: add button functionality
@@ -176,7 +176,6 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => {
const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
const { key, target } = event;
console.log(typeof key);
// Typecast
const inputTarget = target as HTMLInputElement;