Skip to content

Commit 00e07a7

Browse files
committed
chore(types): split account and account-with-password types
1 parent 9a28e25 commit 00e07a7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

electron/renderer/components/sidebar/accounts/sidebar-item-accounts.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {
88
import type { ReactNode } from 'react';
99
import type React from 'react';
1010
import { useCallback, useState } from 'react';
11+
import type { Account } from '../../../../common/account/types.js';
1112
import { useRemoveAccount, useSaveAccount } from '../../../hooks/accounts.jsx';
1213
import { useShowSidebarCharacters } from '../../../hooks/sidebar.jsx';
1314
import { runInBackground } from '../../../lib/async/run-in-background.js';
14-
import type { Account } from '../../../types/game.types.js';
1515
import type { ModalAddAccountConfirmData } from './modal-add-account.jsx';
1616
import { ModalAddAccount } from './modal-add-account.jsx';
1717
import { ModalEditAccount } from './modal-edit-account.jsx';

electron/renderer/components/sidebar/accounts/table-list-accounts.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
} from '@elastic/eui';
99
import type { ReactNode } from 'react';
1010
import { memo, useMemo } from 'react';
11+
import type { Account } from '../../../../common/account/types.js';
1112
import { useListAccounts } from '../../../hooks/accounts.jsx';
12-
import type { Account } from '../../../types/game.types.js';
1313

1414
export interface TableListAccountsProps {
1515
onEditAccountClick: (account: Account) => void;

electron/renderer/components/sidebar/characters/sidebar-item-characters.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
import isEqual from 'lodash-es/isEqual.js';
99
import type { ReactNode } from 'react';
1010
import { useCallback, useState } from 'react';
11+
import type { Character } from '../../../../common/account/types.js';
1112
import {
1213
usePlayCharacter,
1314
useQuitCharacter,
@@ -16,7 +17,6 @@ import {
1617
} from '../../../hooks/characters.jsx';
1718
import { useShowSidebarAccounts } from '../../../hooks/sidebar.jsx';
1819
import { runInBackground } from '../../../lib/async/run-in-background.js';
19-
import type { Character } from '../../../types/game.types.js';
2020
import { TableListCharacters } from '../characters/table-list-characters.jsx';
2121
import type { ModalAddCharacterConfirmData } from './modal-add-character.jsx';
2222
import { ModalAddCharacter } from './modal-add-character.jsx';

electron/renderer/components/sidebar/characters/table-list-characters.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import isEqual from 'lodash-es/isEqual.js';
1313
import isNil from 'lodash-es/isNil.js';
1414
import type { ReactElement, ReactNode } from 'react';
1515
import { Fragment, memo, useMemo } from 'react';
16+
import type { Character } from '../../../../common/account/types.js';
1617
import {
1718
useListCharacters,
1819
usePlayingCharacter,
1920
} from '../../../hooks/characters.jsx';
2021
import { GameCodeLabels } from '../../../lib/game/game-code-labels.js';
21-
import type { Character } from '../../../types/game.types.js';
2222

2323
interface TableByGameCode {
2424
gameCode: string; // e.g. 'DR'

0 commit comments

Comments
 (0)