Changeset 8a7f936 for components/ComponentDetailsDialog.tsx
- Timestamp:
- 12/29/25 00:37:49 (6 months ago)
- Branches:
- main
- Children:
- 5af32f0
- Parents:
- ae5d054
- File:
-
- 1 edited
-
components/ComponentDetailsDialog.tsx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/ComponentDetailsDialog.tsx
rae5d054 r8a7f936 33 33 const renderValue = (key: string, val: any) => { 34 34 if (Array.isArray(val)) { 35 if (val.length > 0 && typeof val[0] === 'object') { 36 return val.map((v: any) => v.formFactor || v.socket || JSON.stringify(v)).join(', '); 35 if (val.length === 0) return 'None'; 36 37 if (typeof val[0] === 'string') { 38 return val.join(', '); 37 39 } 40 41 if (typeof val[0] === 'object') { 42 const parts = val 43 .map((v: any) => 44 v.socket || 45 v.formFactor || 46 v.name || 47 v.type || 48 Object.values(v)[0] 49 ) 50 .filter(Boolean); 51 return parts.length > 0 ? parts.join(', ') : 'None'; 52 } 53 38 54 return val.join(', '); 39 55 } … … 42 58 const lowerKey = key.toLowerCase(); 43 59 44 // Dodava merni edinici vo zavisnost koja komponenta e45 60 if (lowerKey.includes('capacity') || lowerKey.includes('vram') || lowerKey === 'memory') { 46 61 return `${strVal} GB`; … … 58 73 return `${strVal} GHz`; 59 74 } 75 60 76 if (lowerKey.includes('speed')) { 61 77 return `${strVal} MHz`;
Note:
See TracChangeset
for help on using the changeset viewer.
