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:
@@ -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(() => {
|
||||||
|
@@ -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>
|
||||||
|
@@ -156,4 +156,4 @@ export function renderDate(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UiSizeType = MantineSize | (string & {}) | number;
|
export type UiSizeType = MantineSize | string | number;
|
||||||
|
Reference in New Issue
Block a user