2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-06 12:01:41 +00:00

fix style issues

This commit is contained in:
Matthias Mair
2024-05-01 17:10:29 +02:00
parent 2616cb091a
commit 75bf3378e6
3 changed files with 5 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ interface ApiImageProps extends ImageProps {
/**
* Construct an image container which will load and display the image
*/
export function ApiImage(props: ApiImageProps) {
export function ApiImage(props: Readonly<ApiImageProps>) {
const { host } = useLocalState.getState();
const imageUrl = useMemo(() => {

View File

@@ -61,10 +61,9 @@ export function PageDetail({
<Space />
{detail}
<Group justify="right" gap="xs" wrap="nowrap">
{badges &&
badges.map((badge, idx) => (
<Fragment key={idx}>{badge}</Fragment>
))}
{badges?.map((badge, idx) => (
<Fragment key={idx}>{badge}</Fragment>
))}
</Group>
<Space />
{actions && (

View File

@@ -156,4 +156,4 @@ export function renderDate(
}
}
export type UiSizeType = MantineSize | (string & {}) | number;
export type UiSizeType = MantineSize | string | number;