|
1 | | -import React, { useMemo, useState, useRef } from 'react' |
2 | | -import { createSelector } from 'reselect' |
3 | | -import { useSelector } from 'react-redux' |
4 | | -import { useTranslation } from 'react-i18next' |
5 | | -import styled from 'styled-components' |
| 1 | +import type { ColumnDef, SortingState } from '@tanstack/react-table' |
| 2 | +import type { APIShip } from 'kcsapi/api_port/port/response' |
| 3 | +import type { APIMstShip } from 'kcsapi/api_start2/getData/response' |
| 4 | + |
6 | 5 | import { HTMLTable } from '@blueprintjs/core' |
7 | 6 | import { |
8 | 7 | useReactTable, |
9 | 8 | getCoreRowModel, |
10 | 9 | getSortedRowModel, |
11 | 10 | flexRender, |
12 | | - ColumnDef, |
13 | | - SortingState, |
14 | 11 | } from '@tanstack/react-table' |
15 | 12 | import { useVirtualizer } from '@tanstack/react-virtual' |
16 | | -import fp from 'lodash/fp' |
17 | | -import { mapValues, findIndex, includes, map } from 'lodash' |
18 | 13 | import chroma from 'chroma-js' |
19 | | - |
| 14 | +import { mapValues, findIndex, includes, map } from 'lodash' |
| 15 | +import fp from 'lodash/fp' |
| 16 | +import React, { useMemo, useState, useRef } from 'react' |
| 17 | +import { useTranslation } from 'react-i18next' |
| 18 | +import { useSelector } from 'react-redux' |
| 19 | +import { createSelector } from 'reselect' |
| 20 | +import styled from 'styled-components' |
20 | 21 | import { |
21 | 22 | repairsSelector, |
22 | 23 | fleetShipsIdSelectorFactory, |
23 | 24 | } from 'views/utils/selectors' |
24 | 25 | import { resolveTime } from 'views/utils/tools' |
25 | 26 |
|
| 27 | +import type { RootState } from '../poi-types' |
| 28 | + |
26 | 29 | import { akashiEstimate, timePerHPCalc } from './functions' |
27 | | -import { APIShip } from 'kcsapi/api_port/port/response' |
28 | | -import { APIMstShip } from 'kcsapi/api_start2/getData/response' |
29 | | -import { RootState } from '../poi-types' |
30 | 30 |
|
31 | 31 | interface EnhancedShip extends APIShip { |
32 | 32 | akashi: number |
|
0 commit comments