Skip to content

Commit 30b388f

Browse files
committed
fix import order
1 parent 1a350c4 commit 30b388f

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

pages/table/grouped-table/grouped-table-configs.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import React from 'react';
5+
import { format } from 'date-fns';
6+
57
import { Box, Link, PropertyFilterProps, SpaceBetween, TableProps } from '~components';
6-
import { TransactionRow } from './grouped-table-common';
8+
79
import { columnLabel } from '../shared-configs';
8-
import { format } from 'date-fns';
10+
import { TransactionRow } from './grouped-table-common';
911

1012
export function createColumns(): TableProps.ColumnDefinition<TransactionRow>[] {
1113
return [

pages/table/grouped-table/grouped-table-data.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { groupBy, orderBy, sumBy, uniq } from 'lodash';
5-
import pseudoRandom from '../../utils/pseudo-random';
6-
import { id as generateId } from '../generate-data';
7-
import { Transaction, TransactionRow } from './grouped-table-common';
84
import {
95
addMonths,
106
addSeconds,
@@ -17,6 +13,11 @@ import {
1713
startOfQuarter,
1814
startOfYear,
1915
} from 'date-fns';
16+
import { groupBy, orderBy, sumBy, uniq } from 'lodash';
17+
18+
import pseudoRandom from '../../utils/pseudo-random';
19+
import { id as generateId } from '../generate-data';
20+
import { Transaction, TransactionRow } from './grouped-table-common';
2021

2122
export interface GroupDefinition {
2223
property: string;

pages/table/grouped-table/grouped-table-update-query.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import { PropertyFilterProps } from '~components';
5-
import { TransactionRow } from './grouped-table-common';
65
import { ItemSelectionTree } from '~components/table/selection/utils';
76

7+
import { TransactionRow } from './grouped-table-common';
8+
89
export function findSelectionIds({
910
allPageItems: items,
1011
selectionInverted,

src/table/__tests__/group-selection.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
import React, { useState } from 'react';
44
import { render } from '@testing-library/react';
5+
56
import Table, { TableProps } from '../../../lib/components/table';
67
import createWrapper, { TableWrapper } from '../../../lib/components/test-utils/dom';
78

src/table/selection/use-group-selection.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33
import { useState } from 'react';
4+
45
import { fireNonCancelableEvent } from '../../internal/events';
56
import { useUniqueId } from '../../internal/hooks/use-unique-id';
7+
import { joinStrings } from '../../internal/utils/strings';
68
import { TableProps } from '../interfaces';
79
import { getTrackableValue } from '../utils';
8-
import { joinStrings } from '../../internal/utils/strings';
910
import { SelectionProps } from './interfaces';
1011
import { ItemSelectionTree } from './utils';
1112

0 commit comments

Comments
 (0)