Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Oct 4, 2024
1 parent 182f389 commit 045590b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"semi": false,
"singleQuote": false,
"printWidth": 120
"printWidth": 120,
"trailingComma": "es5"
}
4 changes: 2 additions & 2 deletions src/app/KVNRV/components/Battery/Battery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export const Batteries = observer(({ size }: BatteryProps) => {
batteryLevelBars <= ALARM_LEVEL
? STATUS_LEVELS.ALARM
: batteryLevelBars <= WARNING_LEVEL
? STATUS_LEVELS.WARNING
: STATUS_LEVELS.SUCCESS
? STATUS_LEVELS.WARNING
: STATUS_LEVELS.SUCCESS

const footer: Footer = { status: status, message: STATUS_LEVELS_MSG[status], property: "Charge" }
return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/Marine2/components/boxes/Battery/Battery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const BatteryState = ({ battery, unit }: Props) => {
<div className="w-full h-full flex flex-col justify-between">
<div>
<div className={classNames(colorClasses, activeStyles?.value)}>
{battery.soc ? Math.round(battery.soc) : battery.soc ?? "--"}
{battery.soc ? Math.round(battery.soc) : (battery.soc ?? "--")}
<span className="pl-0.5 opacity-70">%</span>
</div>
<div className={classNames("text-victron-gray-300 dark:text-victron-gray-500", activeStyles.valueSubtitle)}>
Expand Down
4 changes: 2 additions & 2 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ declare module "*.webp" {
}

declare module "*.svg" {
const content: any;
export default content;
const content: any
export default content
}

declare module "*.module.css" {
Expand Down

0 comments on commit 045590b

Please sign in to comment.