[chore] component props readonly

This commit is contained in:
MathieuG-P
2024-01-07 17:06:32 +01:00
parent d6e51f0d11
commit 86017e65c0
2 changed files with 4 additions and 4 deletions
@@ -2,13 +2,13 @@ import { useThemeColor } from "renderer/hooks/use-theme-color.hook";
import { LaserSlider } from "../laser-slider.component";
import { BsContentTabItem, BsContentTabItemProps } from "./bs-content-tab-item.component";
type Props<T = unknown> = {
type Props<T = unknown> = Readonly<{
className?: string;
tabs: BsContentTabItemProps<T>[];
tabIndex: number;
onTabChange: (index: number, tab: BsContentTabItemProps<T>) => void;
children: JSX.Element;
}
}>;
export function BsContentTabPanel({className, tabIndex, tabs, onTabChange, children}: Props) {
@@ -1,12 +1,12 @@
import { CSSProperties } from "react";
type Props = {
type Props = Readonly<{
mode: "horizontal" | "vertical";
color: string;
className?: string;
nbSteps: number;
step: number;
}
}>
export function LaserSlider({mode, color, className, nbSteps, step}: Props) {