mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 13:35:40 +00:00
Fix icons
This commit is contained in:
@ -243,7 +243,8 @@ export default function PartDetail() {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
name: 'creation_user',
|
name: 'creation_user',
|
||||||
label: t`Created By`,
|
label: t`Created By`,
|
||||||
badge: 'user'
|
badge: 'user',
|
||||||
|
icon: 'user'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -338,6 +339,7 @@ export default function PartDetail() {
|
|||||||
name: 'stocktake_user',
|
name: 'stocktake_user',
|
||||||
label: t`Stocktake By`,
|
label: t`Stocktake By`,
|
||||||
badge: 'user',
|
badge: 'user',
|
||||||
|
icon: 'user',
|
||||||
value_formatter: () => {
|
value_formatter: () => {
|
||||||
const { data } = useSuspenseQuery({
|
const { data } = useSuspenseQuery({
|
||||||
queryKey: ['stocktake', id],
|
queryKey: ['stocktake', id],
|
||||||
|
@ -38,6 +38,7 @@ export type PartIconsType = {
|
|||||||
export type DetailsField =
|
export type DetailsField =
|
||||||
| {
|
| {
|
||||||
hidden?: boolean;
|
hidden?: boolean;
|
||||||
|
icon?: string;
|
||||||
name: string;
|
name: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
badge?: BadgeType;
|
badge?: BadgeType;
|
||||||
@ -400,7 +401,7 @@ export function DetailsTableField({
|
|||||||
justifyContent: 'flex-start'
|
justifyContent: 'flex-start'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<InvenTreeIcon icon={field.name} />
|
<InvenTreeIcon icon={field.icon ?? field.name} />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Text>{field.label}</Text>
|
<Text>{field.label}</Text>
|
||||||
|
Reference in New Issue
Block a user