Skip to content

Commit

Permalink
fix: use the correct model for product image
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallios committed May 7, 2024
1 parent 09a9162 commit e3d190a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manager-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"lint:fix-types": "eslint --fix ./src/types/*",
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ../.prettierrc",
"dev": "vite",
"dev:force": "vite --force",
"build": "tsc && vite build",
Expand Down
8 changes: 6 additions & 2 deletions manager-ui/src/components/DeviceStateCard/deviceStateCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ export const DeviceStateCard: React.FC = () => {
<Box sx={{ display: 'block', maxWidth: '300px', margin: 'auto', mb: 0 }}>
<Paper
sx={{ display: 'flex', margin: 1.5, justifyContent: 'center', alignItems: 'center' }}
elevation={0}>
<ProductImageWithBattery model={'A3947'} battery={currentState?.battery} />
elevation={0}
>
<ProductImageWithBattery
model={currentState?.serial?.model}
battery={currentState?.battery}
/>
</Paper>
</Box>
</>
Expand Down

0 comments on commit e3d190a

Please sign in to comment.