2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-07 12:22:11 +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 * 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 { host } = useLocalState.getState();
const imageUrl = useMemo(() => { const imageUrl = useMemo(() => {

View File

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

View File

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