diff --git a/.eslintrc.js b/.eslintrc.js index 7bf27ea373869..9d54f523057d0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -110,10 +110,6 @@ module.exports = { element: 'Col', message: 'use flex utility classes instead - most of the time can simply be a plain
', }, - { - element: 'Space', - message: 'use flex or space utility classes instead', - }, { element: 'Divider', message: 'use instead', @@ -161,6 +157,10 @@ module.exports = { element: 'Tabs', message: 'use instead', }, + { + element: 'Space', + message: 'use flex or space utility classes instead', + }, { element: 'Spin', message: 'use Spinner instead', diff --git a/frontend/src/lib/components/InsightLabel/index.tsx b/frontend/src/lib/components/InsightLabel/index.tsx index 2392f77a423c6..0969e8ca353d8 100644 --- a/frontend/src/lib/components/InsightLabel/index.tsx +++ b/frontend/src/lib/components/InsightLabel/index.tsx @@ -1,4 +1,4 @@ -import { Space, Tag } from 'antd' +import { Tag } from 'antd' import { ActionFilter, BreakdownKeyType } from '~/types' import { PropertyKeyInfo } from 'lib/components/PropertyKeyInfo' import { capitalizeFirstLetter, hexToRGBA, midEllipsis } from 'lib/utils' @@ -168,7 +168,7 @@ export function InsightLabel({ )} {pillValues.length > 0 && ( - +
{pillValues.map((pill) => ( @@ -179,7 +179,7 @@ export function InsightLabel({ ))} - +
)}
diff --git a/frontend/src/scenes/dashboard/DashboardReloadAction.tsx b/frontend/src/scenes/dashboard/DashboardReloadAction.tsx index 258a52424a6d1..72c9d2bedebe8 100644 --- a/frontend/src/scenes/dashboard/DashboardReloadAction.tsx +++ b/frontend/src/scenes/dashboard/DashboardReloadAction.tsx @@ -1,4 +1,4 @@ -import { Radio, Space, RadioChangeEvent } from 'antd' +import { Radio, RadioChangeEvent } from 'antd' import { dashboardLogic, DASHBOARD_MIN_REFRESH_INTERVAL_MINUTES } from 'scenes/dashboard/dashboardLogic' import { useActions, useValues } from 'kea' import { humanFriendlyDuration } from 'lib/utils' @@ -82,7 +82,7 @@ export function DashboardReloadAction(): JSX.Element { value={autoRefresh.interval} style={{ width: '100%' }} > - +
{intervalOptions.map(({ label, value }) => ( ))} - +
diff --git a/frontend/src/scenes/instance/AsyncMigrations/AsyncMigrations.tsx b/frontend/src/scenes/instance/AsyncMigrations/AsyncMigrations.tsx index ee366b918dfc8..6c3fbb8b99543 100644 --- a/frontend/src/scenes/instance/AsyncMigrations/AsyncMigrations.tsx +++ b/frontend/src/scenes/instance/AsyncMigrations/AsyncMigrations.tsx @@ -1,7 +1,7 @@ import { useEffect } from 'react' import { PageHeader } from 'lib/components/PageHeader' import { SceneExport } from 'scenes/sceneTypes' -import { Button, Progress, Space } from 'antd' +import { Button, Progress } from 'antd' import { useActions, useValues } from 'kea' import { PlayCircleOutlined } from '@ant-design/icons' import { @@ -309,7 +309,6 @@ export function AsyncMigrations(): JSX.Element { Refresh - - - - - +
+ editPlugin(null)} data-attr="plugin-drawer-cancel"> + Cancel + + + Save +
} > @@ -184,14 +184,14 @@ export function PluginDrawer(): JSX.Element { {editingPlugin.plugin_type === 'source' && canGloballyManagePlugins(user?.organization) ? (
- +
) : null}