Skip to content

Commit 217d4e8

Browse files
authored
chore: minor lint fixes (#665)
1 parent 1e8973f commit 217d4e8

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

src/renderer/Generics/redesign/Checkbox/Checkbox.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { useEffect, useState } from 'react';
2+
import { Icon } from '../Icon/Icon.js';
23
import {
34
checkboxContainer,
4-
checkboxLabel,
55
checkboxInput,
6+
checkboxLabel,
7+
checkedCustomCheckbox,
68
customCheckbox,
9+
disabledCheckbox,
10+
indeterminateCustomCheckbox,
711
svgCheckmark,
812
svgIndeterminate,
9-
checkedCustomCheckbox,
10-
indeterminateCustomCheckbox,
11-
disabledCheckbox,
1213
} from './checkbox.css';
13-
import { Icon } from '../Icon/Icon.js';
1414

1515
export interface CheckboxProps {
1616
/**

src/renderer/Generics/redesign/Checkbox/checkbox.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { style } from '@vanilla-extract/css';
2-
import { vars, common } from '../theme.css';
2+
import { common, vars } from '../theme.css';
33

44
export const checkboxContainer = style({
55
display: 'flex',

src/renderer/Presentational/ModalManager/ModalManager.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { NodeSettingsModal } from './NodeSettingsModal';
1111
import { PodmanModal } from './PodmanModal';
1212
import { PreferencesModal } from './PreferencesModal';
1313
import { RemoveNodeModal } from './RemoveNodeModal';
14-
import { UpdateModal } from './UpdateModal';
1514
import { ResetConfigModal } from './ResetConfigModal';
15+
import { UpdateModal } from './UpdateModal';
1616
import { modalRoutes } from './modalUtils';
1717

1818
const ModalManager = () => {

src/renderer/Presentational/NodeScreen/NodeScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Button from '../../Generics/redesign/Button/Button';
66
import CopyButton from '../../Generics/redesign/CopyButton/CopyButton.js';
77
import { HeaderButton } from '../../Generics/redesign/HeaderButton/HeaderButton';
88
import type { NodeAction } from '../../Generics/redesign/consts';
9+
import { SYNC_STATUS } from '../../Generics/redesign/consts.js';
910
import { getStatusObject } from '../../Generics/redesign/utils.js';
1011
import type { NodeBackgroundId } from '../../assets/images/nodeBackgrounds';
1112
import electron from '../../electronGlobal';
@@ -33,7 +34,6 @@ import {
3334
descriptionFont,
3435
titleFont,
3536
} from './NodeScreen.css';
36-
import { SYNC_STATUS } from '../../Generics/redesign/consts.js';
3737

3838
let alphaModalRendered = false;
3939

src/renderer/Presentational/SidebarNodeItemWrapper/SidebarNodeItemWrapper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import moment from 'moment';
2-
import { useEffect, useState, useCallback } from 'react';
2+
import { useCallback, useEffect, useState } from 'react';
33
import { type NodePackage, NodeStatus } from '../../../common/node';
44
import { SidebarNodeItem } from '../../Generics/redesign/SidebarNodeItem/SidebarNodeItem';
5+
import { SYNC_STATUS } from '../../Generics/redesign/consts.js';
56
import { getStatusObject, getSyncStatus } from '../../Generics/redesign/utils';
67
import { useAppDispatch, useAppSelector } from '../../state/hooks';
78
import { selectUserNodes } from '../../state/node';
@@ -11,7 +12,6 @@ import {
1112
useGetExecutionPeersQuery,
1213
} from '../../state/services';
1314
import { getSyncDataForServiceAndNode } from '../../utils.js';
14-
import { SYNC_STATUS } from '../../Generics/redesign/consts.js';
1515

1616
export type SidebarNodeStatus =
1717
| 'online'

src/renderer/Presentational/UpdateModal/Update.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import { useEffect, useState } from 'react';
22
import { useTranslation } from 'react-i18next';
33
import type { NodePackage } from '../../../common/node';
4+
import { setModalState } from '../..//state/modal.js';
5+
import Button from '../../Generics/redesign/Button/Button.js';
6+
import { Icon } from '../../Generics/redesign/Icon/Icon.js';
7+
import { UpdateCallout } from '../../Generics/redesign/UpdateCallout/UpdateCallout.js';
8+
import type { NodeOverviewProps } from '../../Generics/redesign/consts.js';
9+
import { useAppDispatch } from '../../state/hooks.js';
410
import type { ModalConfig } from '../ModalManager/modalUtils';
11+
import { modalRoutes } from '../ModalManager/modalUtils.js';
512
import {
613
container,
14+
loadingIcon,
15+
statusButton,
716
statusContainer,
817
statusIcon,
9-
successIcon,
10-
loadingIcon,
1118
statusText,
12-
statusButton,
19+
successIcon,
1320
} from './update.css';
14-
import { UpdateCallout } from '../../Generics/redesign/UpdateCallout/UpdateCallout.js';
15-
import Button from '../../Generics/redesign/Button/Button.js';
16-
import { Icon } from '../../Generics/redesign/Icon/Icon.js';
17-
import type { NodeOverviewProps } from '../../Generics/redesign/consts.js';
18-
import { useAppDispatch } from '../../state/hooks.js';
19-
import { setModalState } from '../..//state/modal.js';
20-
import { modalRoutes } from '../ModalManager/modalUtils.js';
2121

2222
export interface UpdateProps {
2323
updateStatus: string; // The current status of the update process

src/renderer/Presentational/UpdateModal/UpdateWrapper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useEffect, useState } from 'react';
2+
import electron from '../../../renderer/electronGlobal.js';
3+
import type { NodeOverviewProps } from '../../Generics/redesign/consts.js';
24
import { useAppSelector } from '../../state/hooks';
35
import { selectSelectedNodePackage } from '../../state/node';
46
import type { ModalConfig } from '../ModalManager/modalUtils';
57
import Update from './Update';
6-
import type { NodeOverviewProps } from '../../Generics/redesign/consts.js';
7-
import electron from '../../../renderer/electronGlobal.js';
88

99
export interface UpdateWrapperProps {
1010
modalOnClose: () => void;

src/renderer/Presentational/UpdateModal/update.css.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { style, keyframes } from '@vanilla-extract/css';
2-
import { vars, common } from '../../Generics/redesign/theme.css';
1+
import { keyframes, style } from '@vanilla-extract/css';
2+
import { common, vars } from '../../Generics/redesign/theme.css';
33

44
export const container = style({
55
display: 'flex',

0 commit comments

Comments
 (0)