diff options
author | 2023-12-04 08:52:48 -0700 | |
---|---|---|
committer | 2023-12-04 08:52:48 -0700 | |
commit | 3fc8706007d896dcbde69c0ce924a6a5eb66aba6 (patch) | |
tree | 008bbcfc14d819cd2f744eb16607b6aa9c4ad0bf /src/components/settings | |
parent | chore: project maintenance (#1466) (diff) | |
download | ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.gz ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.zst ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.zip |
refactor: implement biome (#1467)
- add `biome.json`
- add `biome:check` and `biome:check:fix` commands to `package.json`
- add `biome:check:fix` command to run as part of `prepare-code` command
- install `@biomejs/biome` dependency
- add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions`
- fix or comment out various reported lint issues
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/services/ServiceItem.tsx | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/src/components/settings/services/ServiceItem.tsx b/src/components/settings/services/ServiceItem.tsx index babe06b5a..35b63b160 100644 --- a/src/components/settings/services/ServiceItem.tsx +++ b/src/components/settings/services/ServiceItem.tsx | |||
@@ -44,11 +44,7 @@ class ServiceItem extends Component<IProps> { | |||
44 | 'service-table__row--disabled': !service.isEnabled, | 44 | 'service-table__row--disabled': !service.isEnabled, |
45 | })} | 45 | })} |
46 | > | 46 | > |
47 | <td | 47 | <td className="service-table__column-icon" onClick={goToServiceForm}> |
48 | className="service-table__column-icon" | ||
49 | onClick={goToServiceForm} | ||
50 | role="gridcell" | ||
51 | > | ||
52 | <img | 48 | <img |
53 | src={service.icon} | 49 | src={service.icon} |
54 | className={classnames({ | 50 | className={classnames({ |
@@ -58,18 +54,10 @@ class ServiceItem extends Component<IProps> { | |||
58 | alt="" | 54 | alt="" |
59 | /> | 55 | /> |
60 | </td> | 56 | </td> |
61 | <td | 57 | <td className="service-table__column-name" onClick={goToServiceForm}> |
62 | className="service-table__column-name" | ||
63 | onClick={goToServiceForm} | ||
64 | role="gridcell" | ||
65 | > | ||
66 | {service.name === '' ? service.recipe.name : service.name} | 58 | {service.name === '' ? service.recipe.name : service.name} |
67 | </td> | 59 | </td> |
68 | <td | 60 | <td className="service-table__column-info" onClick={goToServiceForm}> |
69 | className="service-table__column-info" | ||
70 | onClick={goToServiceForm} | ||
71 | role="gridcell" | ||
72 | > | ||
73 | {service.isMuted && ( | 61 | {service.isMuted && ( |
74 | <Icon | 62 | <Icon |
75 | icon={mdiBellOff} | 63 | icon={mdiBellOff} |
@@ -78,11 +66,7 @@ class ServiceItem extends Component<IProps> { | |||
78 | /> | 66 | /> |
79 | )} | 67 | )} |
80 | </td> | 68 | </td> |
81 | <td | 69 | <td className="service-table__column-info" onClick={goToServiceForm}> |
82 | className="service-table__column-info" | ||
83 | onClick={goToServiceForm} | ||
84 | role="gridcell" | ||
85 | > | ||
86 | {!service.isEnabled && ( | 70 | {!service.isEnabled && ( |
87 | <Icon | 71 | <Icon |
88 | icon={mdiPower} | 72 | icon={mdiPower} |
@@ -93,11 +77,7 @@ class ServiceItem extends Component<IProps> { | |||
93 | /> | 77 | /> |
94 | )} | 78 | )} |
95 | </td> | 79 | </td> |
96 | <td | 80 | <td className="service-table__column-info" onClick={goToServiceForm}> |
97 | className="service-table__column-info" | ||
98 | onClick={goToServiceForm} | ||
99 | role="gridcell" | ||
100 | > | ||
101 | {!service.isNotificationEnabled && ( | 81 | {!service.isNotificationEnabled && ( |
102 | <Icon | 82 | <Icon |
103 | icon={mdiMessageBulletedOff} | 83 | icon={mdiMessageBulletedOff} |