replaces js interfaces with types

This commit is contained in:
Mose Müller
2024-01-16 12:57:35 +01:00
parent 0e9832e2f1
commit 0ecaeac3fb
12 changed files with 24 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ import { NumberComponent, NumberObject } from './NumberComponent';
import { getIdFromFullAccessPath } from '../utils/stringUtils';
import { LevelName } from './NotificationsComponent';
interface SliderComponentProps {
type SliderComponentProps = {
name: string;
min: NumberObject;
max: NumberObject;
@@ -19,7 +19,7 @@ interface SliderComponentProps {
stepSize: NumberObject;
isInstantUpdate: boolean;
addNotification: (message: string, levelname?: LevelName) => void;
}
};
export const SliderComponent = React.memo((props: SliderComponentProps) => {
const renderCount = useRef(0);