2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 03:30:54 +00:00

[PUI] More style fixes (#7142)

* fix interface names

* use Readonly for props

* fix typescript:S3863

* require hashes in package installer too
This commit is contained in:
Matthias Mair
2024-04-30 11:24:52 +02:00
committed by GitHub
parent a9b932cc32
commit 7e9d2f79ab
44 changed files with 174 additions and 127 deletions

View File

@ -217,7 +217,7 @@ type InvenTreeIconProps = {
iconProps?: TablerIconProps;
};
export function InvenTreeIcon(props: InvenTreeIconProps) {
export function InvenTreeIcon(props: Readonly<InvenTreeIconProps>) {
let Icon: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
if (props.icon in icons) {