Skip to content

Commit ceb50a9

Browse files
committed
Fix duplicate imports
1 parent 808978f commit ceb50a9

File tree

18 files changed

+19
-35
lines changed

18 files changed

+19
-35
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ const eslintConfig = {
5454
navMenu: 'readonly',
5555
kb_meta_file: 'readonly',
5656
navigator: 'readonly',
57+
localStorage: 'readonly',
58+
ktgooglefonts: 'readonly',
5759
},
5860
rules: {
5961
'prettier/prettier': 'off',

src/block-defaults/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { useEffect, useState } from '@wordpress/element';
2-
import { useSelect } from '@wordpress/data';
2+
import { useSelect, useDispatch } from '@wordpress/data';
33
import KadencePanelBody from '../panel-body/index.js';
44
import { __ } from '@wordpress/i18n';
55
import { omit, head, get, isEqual } from 'lodash';
6-
import { useDispatch } from '@wordpress/data';
76
import { store as noticesStore } from '@wordpress/notices';
87
import { Button, Modal, __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components';
98
import apiFetch from '@wordpress/api-fetch';

src/border/responsive-border-control/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ import { __ } from '@wordpress/i18n';
1212
import { map, isEqual } from 'lodash';
1313
import BorderControl from '../border-control';
1414
import { capitalizeFirstLetter } from '@kadence/helpers';
15-
import { undo } from '@wordpress/icons';
15+
import { undo, settings, link, linkOff } from '@wordpress/icons';
1616
/**
1717
* WordPress dependencies
1818
*/
1919
import { useInstanceId } from '@wordpress/compose';
2020
import { Dashicon, Button, ButtonGroup } from '@wordpress/components';
2121
import { outlineTopIcon, outlineRightIcon, outlineBottomIcon, outlineLeftIcon } from '@kadence/icons';
22-
import { settings, link, linkOff } from '@wordpress/icons';
2322
/**
2423
* Build the Measure controls
2524
* @returns {object} Measure settings.

src/border/responsive-single-border-control/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ import { __ } from '@wordpress/i18n';
1212
import { map, isEqual } from 'lodash';
1313
import SingleBorderControl from '../single-border-control';
1414
import { capitalizeFirstLetter } from '@kadence/helpers';
15-
import { undo } from '@wordpress/icons';
15+
import { undo, settings, link, linkOff } from '@wordpress/icons';
1616
/**
1717
* WordPress dependencies
1818
*/
1919
import { useInstanceId } from '@wordpress/compose';
2020
import { Dashicon, Button, ButtonGroup } from '@wordpress/components';
2121
import { outlineTopIcon, outlineRightIcon, outlineBottomIcon, outlineLeftIcon } from '@kadence/icons';
22-
import { settings, link, linkOff } from '@wordpress/icons';
2322
/**
2423
* Build the Measure controls
2524
* @returns {object} Measure settings.

src/color/border-color-control/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ import './editor.scss';
1919
* Internal block libraries
2020
*/
2121
import { __ } from '@wordpress/i18n';
22-
import { Fragment } from '@wordpress/element';
22+
import { Fragment, useState, useRef } from '@wordpress/element';
2323
import { Button, ButtonGroup, Tooltip } from '@wordpress/components';
2424
import { useSelect, useDispatch } from '@wordpress/data';
25-
import { useState, useRef } from '@wordpress/element';
2625

2726
import {
2827
outlineTopIcon,

src/column-drag-resizer/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Button, Tooltip, ResizableBox } from '@wordpress/components';
2-
import { isRTL } from '@kadence/helpers';
2+
import { isRTL, getPreviewSize } from '@kadence/helpers';
33
import classnames from 'classnames';
44
import { debounce, throttle } from 'lodash';
55

@@ -10,7 +10,6 @@ import { __ } from '@wordpress/i18n';
1010
import { useState } from '@wordpress/element';
1111
import { getPreviewGutterSize, getGutterTotal } from './utils';
1212
import ContainerDimensions from 'react-container-dimensions';
13-
import { getPreviewSize } from '@kadence/helpers';
1413

1514
/**
1615
* Import Css

src/dynamic-background-control/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import { debounce } from 'lodash';
77
* WordPress dependencies
88
*/
99
import { __ } from '@wordpress/i18n';
10-
import { Component } from '@wordpress/element';
10+
import { Component, createRef } from '@wordpress/element';
1111
import { Button, withFilters, Popover, ExternalLink } from '@wordpress/components';
12-
import { createRef } from '@wordpress/element';
1312

1413
/**
1514
* Internal Dependencies

src/dynamic-gallery-control/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import { debounce } from 'lodash';
77
* WordPress dependencies
88
*/
99
import { __ } from '@wordpress/i18n';
10-
import { Component } from '@wordpress/element';
10+
import { Component, createRef } from '@wordpress/element';
1111
import { Button, withFilters, Popover, ExternalLink } from '@wordpress/components';
12-
import { createRef } from '@wordpress/element';
1312

1413
/**
1514
* Build the Dynamic Image controls

src/dynamic-text-control/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import { debounce } from 'lodash';
77
* WordPress dependencies
88
*/
99
import { __ } from '@wordpress/i18n';
10-
import { Component } from '@wordpress/element';
10+
import { Component, createRef } from '@wordpress/element';
1111
import { Button, withFilters, Popover, ExternalLink, ToolbarGroup, ToolbarButton } from '@wordpress/components';
12-
import { createRef } from '@wordpress/element';
1312

1413
/**
1514
* Internal Dependencies

src/font-size/responsive.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ import { __ } from '@wordpress/i18n';
1212
import { map, isEqual } from 'lodash';
1313
import FontSizeControl from './index';
1414
import { capitalizeFirstLetter, FONT_SIZES_MAP } from '@kadence/helpers';
15-
import { undo } from '@wordpress/icons';
15+
import { undo, settings, link, linkOff } from '@wordpress/icons';
1616
import { Dashicon, Button, DropdownMenu, ButtonGroup } from '@wordpress/components';
17-
import { settings, link, linkOff } from '@wordpress/icons';
1817
/**
1918
* Build the Measure controls
2019
* @returns {object} Measure settings.

0 commit comments

Comments
 (0)