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:
@@ -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(() => {
|
||||
|
@@ -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 && (
|
||||
|
@@ -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