From 36389498fa59ba8d06349c4da8af8cae1d8ba151 Mon Sep 17 00:00:00 2001 From: Nastya <55718143+anrusina@users.noreply.github.com> Date: Thu, 10 Feb 2022 15:34:56 -0800 Subject: [PATCH] chore: update classnames to 2.3.1 (#283) Signed-off-by: Nastya Rusina --- package.json | 3 +-- src/components/Entities/EntityDescription.tsx | 2 +- src/components/Entities/EntityDetailsHeader.tsx | 2 +- .../Executions/ExecutionDetails/ExecutionDetails.tsx | 2 +- .../ExecutionDetailsAppBarContent.tsx | 2 +- .../ExecutionDetails/ExecutionMetadata.tsx | 2 +- .../ExecutionDetails/ExecutionMetadataExtra.tsx | 2 +- .../NodeExecutionDetailsPanelContent.tsx | 2 +- src/components/Executions/ExecutionStatusBadge.tsx | 2 +- .../Executions/NodeExecutionCacheStatus.tsx | 2 +- .../Executions/Tables/ExecutionsTableHeader.tsx | 2 +- .../Executions/Tables/NodeExecutionChildren.tsx | 2 +- .../Executions/Tables/NodeExecutionRow.tsx | 2 +- .../Executions/Tables/NodeExecutionsTable.tsx | 2 +- .../Executions/Tables/WorkflowExecutionLink.tsx | 2 +- .../Executions/Tables/WorkflowExecutionsTable.tsx | 2 +- .../Executions/Tables/WorkflowVersionsTable.tsx | 2 +- .../Tables/__mocks__/WorkflowExecutionsTable.tsx | 2 +- .../TaskExecutionDetailsAppBarContent.tsx | 2 +- .../TaskExecutionsList/TaskExecutionsListItem.tsx | 2 +- src/components/Launch/LaunchForm/NoInputsNeeded.tsx | 2 +- src/components/Literals/LiteralMapViewer.tsx | 2 +- src/components/Literals/PrintList.tsx | 2 +- .../Literals/Scalar/ProtobufStructValue.tsx | 2 +- src/components/Navigation/DefaultAppBarContent.tsx | 2 +- src/components/Navigation/ProjectNavigation.tsx | 2 +- src/components/Navigation/ProjectSelector.tsx | 2 +- src/components/Navigation/SearchableProjectList.tsx | 2 +- src/components/Tables/DataList.tsx | 2 +- .../Tables/filters/FilterPopoverButton.tsx | 2 +- src/components/Task/SearchableTaskNameList.tsx | 2 +- src/components/common/ContentContainer.tsx | 2 +- src/components/common/DetailsGroup.tsx | 2 +- src/components/common/DropDownWindowButton.tsx | 2 +- src/components/common/ErrorBoundary.tsx | 2 +- src/components/common/ExpandableMonospaceText.tsx | 2 +- src/components/common/LoadingSpinner.tsx | 2 +- src/components/common/NewTargetLink.tsx | 2 +- yarn.lock | 12 ++++++------ 39 files changed, 44 insertions(+), 45 deletions(-) diff --git a/package.json b/package.json index 4e63738e11..48f1bb08a3 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,6 @@ "@testing-library/jest-dom": "^5.5.0", "@testing-library/react": "^10.0.3", "@types/cheerio": "^0.22.2", - "@types/classnames": "^2.2.0", "@types/compression-webpack-plugin": "^2.0.1", "@types/d3-shape": "^1.2.6", "@types/debug": "^0.0.30", @@ -141,7 +140,7 @@ "babel-jest": "^26.0.0", "babel-loader": "^8.0.0-beta.2", "camelcase-keys": "^6.1.1", - "classnames": "^2.2.6", + "classnames": "^2.3.1", "compression-webpack-plugin": "^3.0.1", "contrast": "^1.0.1", "copy-to-clipboard": "^3.0.8", diff --git a/src/components/Entities/EntityDescription.tsx b/src/components/Entities/EntityDescription.tsx index af06b368a3..51eec911d6 100644 --- a/src/components/Entities/EntityDescription.tsx +++ b/src/components/Entities/EntityDescription.tsx @@ -1,6 +1,6 @@ import { Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import { WaitForData } from 'components/common/WaitForData'; import { useNamedEntity } from 'components/hooks/useNamedEntity'; diff --git a/src/components/Entities/EntityDetailsHeader.tsx b/src/components/Entities/EntityDetailsHeader.tsx index 9d7490b40c..d3800d7072 100644 --- a/src/components/Entities/EntityDetailsHeader.tsx +++ b/src/components/Entities/EntityDetailsHeader.tsx @@ -1,7 +1,7 @@ import { Button, Dialog } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; import ArrowBack from '@material-ui/icons/ArrowBack'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import { ResourceIdentifier, ResourceType } from 'models/Common/types'; import { Project } from 'models/Project/types'; diff --git a/src/components/Executions/ExecutionDetails/ExecutionDetails.tsx b/src/components/Executions/ExecutionDetails/ExecutionDetails.tsx index f3d02aa94b..b03dd12448 100644 --- a/src/components/Executions/ExecutionDetails/ExecutionDetails.tsx +++ b/src/components/Executions/ExecutionDetails/ExecutionDetails.tsx @@ -1,7 +1,7 @@ import { Collapse, IconButton } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; import ExpandMore from '@material-ui/icons/ExpandMore'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { LargeLoadingSpinner } from 'components/common/LoadingSpinner'; import { WaitForQuery } from 'components/common/WaitForQuery'; import { withRouteParams } from 'components/common/withRouteParams'; diff --git a/src/components/Executions/ExecutionDetails/ExecutionDetailsAppBarContent.tsx b/src/components/Executions/ExecutionDetails/ExecutionDetailsAppBarContent.tsx index c7b2acaacf..6e70ef9b30 100644 --- a/src/components/Executions/ExecutionDetails/ExecutionDetailsAppBarContent.tsx +++ b/src/components/Executions/ExecutionDetails/ExecutionDetailsAppBarContent.tsx @@ -1,7 +1,7 @@ import { Button, Dialog, Link, Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; import ArrowBack from '@material-ui/icons/ArrowBack'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { navbarGridHeight } from 'common/layout'; import { ButtonCircularProgress } from 'components/common/ButtonCircularProgress'; import { MoreOptionsMenu } from 'components/common/MoreOptionsMenu'; diff --git a/src/components/Executions/ExecutionDetails/ExecutionMetadata.tsx b/src/components/Executions/ExecutionDetails/ExecutionMetadata.tsx index 74fcbaa34d..dc5b265a4a 100644 --- a/src/components/Executions/ExecutionDetails/ExecutionMetadata.tsx +++ b/src/components/Executions/ExecutionDetails/ExecutionMetadata.tsx @@ -1,6 +1,6 @@ import { Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { dashedValueString } from 'common/constants'; import { formatDateUTC, protobufDurationToHMS } from 'common/formatters'; import { timestampToDate } from 'common/utils'; diff --git a/src/components/Executions/ExecutionDetails/ExecutionMetadataExtra.tsx b/src/components/Executions/ExecutionDetails/ExecutionMetadataExtra.tsx index bf70111087..17601bd673 100644 --- a/src/components/Executions/ExecutionDetails/ExecutionMetadataExtra.tsx +++ b/src/components/Executions/ExecutionDetails/ExecutionMetadataExtra.tsx @@ -1,6 +1,6 @@ import { Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import { Execution } from 'models/Execution/types'; import * as React from 'react'; diff --git a/src/components/Executions/ExecutionDetails/NodeExecutionDetailsPanelContent.tsx b/src/components/Executions/ExecutionDetails/NodeExecutionDetailsPanelContent.tsx index 440df52827..793789d7da 100644 --- a/src/components/Executions/ExecutionDetails/NodeExecutionDetailsPanelContent.tsx +++ b/src/components/Executions/ExecutionDetails/NodeExecutionDetailsPanelContent.tsx @@ -4,7 +4,7 @@ import { makeStyles, Theme } from '@material-ui/core/styles'; import Tab from '@material-ui/core/Tab'; import Tabs from '@material-ui/core/Tabs'; import Close from '@material-ui/icons/Close'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import { InfoIcon } from 'components/common/Icons/InfoIcon'; import { bodyFontFamily, smallFontSize } from 'components/Theme/constants'; diff --git a/src/components/Executions/ExecutionStatusBadge.tsx b/src/components/Executions/ExecutionStatusBadge.tsx index f712283475..660c299f32 100644 --- a/src/components/Executions/ExecutionStatusBadge.tsx +++ b/src/components/Executions/ExecutionStatusBadge.tsx @@ -1,5 +1,5 @@ import { makeStyles, Theme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { bodyFontFamily, smallFontSize, diff --git a/src/components/Executions/NodeExecutionCacheStatus.tsx b/src/components/Executions/NodeExecutionCacheStatus.tsx index ed3d11a201..ff4d7d6dec 100644 --- a/src/components/Executions/NodeExecutionCacheStatus.tsx +++ b/src/components/Executions/NodeExecutionCacheStatus.tsx @@ -3,7 +3,7 @@ import { makeStyles, Theme } from '@material-ui/core/styles'; import CachedOutlined from '@material-ui/icons/CachedOutlined'; import ErrorOutlined from '@material-ui/icons/ErrorOutlined'; import InfoOutlined from '@material-ui/icons/InfoOutlined'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { assertNever } from 'common/utils'; import { PublishedWithChangesOutlined } from 'components/common/PublishedWithChanges'; import { useCommonStyles } from 'components/common/styles'; diff --git a/src/components/Executions/Tables/ExecutionsTableHeader.tsx b/src/components/Executions/Tables/ExecutionsTableHeader.tsx index 5ab87106de..a5630c6350 100644 --- a/src/components/Executions/Tables/ExecutionsTableHeader.tsx +++ b/src/components/Executions/Tables/ExecutionsTableHeader.tsx @@ -1,5 +1,5 @@ import { Typography } from '@material-ui/core'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { isFunction } from 'common/typeCheckers'; import * as React from 'react'; import { useExecutionTableStyles } from './styles'; diff --git a/src/components/Executions/Tables/NodeExecutionChildren.tsx b/src/components/Executions/Tables/NodeExecutionChildren.tsx index 256a2e29e7..4a7b1de383 100644 --- a/src/components/Executions/Tables/NodeExecutionChildren.tsx +++ b/src/components/Executions/Tables/NodeExecutionChildren.tsx @@ -1,6 +1,6 @@ import { Button, Typography } from '@material-ui/core'; import { Theme, makeStyles } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { getCacheKey } from 'components/Cache/utils'; import { useTheme } from 'components/Theme/useTheme'; import { Admin } from 'flyteidl'; diff --git a/src/components/Executions/Tables/NodeExecutionRow.tsx b/src/components/Executions/Tables/NodeExecutionRow.tsx index f34392ccca..d91d49c132 100644 --- a/src/components/Executions/Tables/NodeExecutionRow.tsx +++ b/src/components/Executions/Tables/NodeExecutionRow.tsx @@ -1,7 +1,7 @@ import { CircularProgress, IconButton } from '@material-ui/core'; import { Admin } from 'flyteidl'; import ErrorOutline from '@material-ui/icons/ErrorOutline'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useTheme } from 'components/Theme/useTheme'; import { isEqual } from 'lodash'; import { NodeExecution } from 'models/Execution/types'; diff --git a/src/components/Executions/Tables/NodeExecutionsTable.tsx b/src/components/Executions/Tables/NodeExecutionsTable.tsx index 83f8ee7dbd..6d5a733f53 100644 --- a/src/components/Executions/Tables/NodeExecutionsTable.tsx +++ b/src/components/Executions/Tables/NodeExecutionsTable.tsx @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { Admin } from 'flyteidl'; import { getCacheKey } from 'components/Cache/utils'; import { DetailsPanel } from 'components/common/DetailsPanel'; diff --git a/src/components/Executions/Tables/WorkflowExecutionLink.tsx b/src/components/Executions/Tables/WorkflowExecutionLink.tsx index 502091a459..bf98eb11e8 100644 --- a/src/components/Executions/Tables/WorkflowExecutionLink.tsx +++ b/src/components/Executions/Tables/WorkflowExecutionLink.tsx @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import { WorkflowExecutionIdentifier } from 'models/Execution/types'; import * as React from 'react'; diff --git a/src/components/Executions/Tables/WorkflowExecutionsTable.tsx b/src/components/Executions/Tables/WorkflowExecutionsTable.tsx index 273f34c6ca..465cbfe6e4 100644 --- a/src/components/Executions/Tables/WorkflowExecutionsTable.tsx +++ b/src/components/Executions/Tables/WorkflowExecutionsTable.tsx @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import classnames from 'classnames'; import * as React from 'react'; import { ListRowRenderer } from 'react-virtualized'; import { noExecutionsFoundString } from 'common/constants'; diff --git a/src/components/Executions/Tables/WorkflowVersionsTable.tsx b/src/components/Executions/Tables/WorkflowVersionsTable.tsx index 70fbc792d7..e46e4f7555 100644 --- a/src/components/Executions/Tables/WorkflowVersionsTable.tsx +++ b/src/components/Executions/Tables/WorkflowVersionsTable.tsx @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { noWorkflowVersionsFoundString } from 'common/constants'; import { useCommonStyles } from 'components/common/styles'; import { ListProps } from 'components/common/types'; diff --git a/src/components/Executions/Tables/__mocks__/WorkflowExecutionsTable.tsx b/src/components/Executions/Tables/__mocks__/WorkflowExecutionsTable.tsx index a0541973f2..5ec98f9c66 100644 --- a/src/components/Executions/Tables/__mocks__/WorkflowExecutionsTable.tsx +++ b/src/components/Executions/Tables/__mocks__/WorkflowExecutionsTable.tsx @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import * as React from 'react'; import { ExecutionsTableHeader } from '../ExecutionsTableHeader'; diff --git a/src/components/Executions/TaskExecutionDetails/TaskExecutionDetailsAppBarContent.tsx b/src/components/Executions/TaskExecutionDetails/TaskExecutionDetailsAppBarContent.tsx index 2a7c7377c4..42a6c742ec 100644 --- a/src/components/Executions/TaskExecutionDetails/TaskExecutionDetailsAppBarContent.tsx +++ b/src/components/Executions/TaskExecutionDetails/TaskExecutionDetailsAppBarContent.tsx @@ -1,7 +1,7 @@ import { Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; import ArrowBack from '@material-ui/icons/ArrowBack'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { formatDateUTC, protobufDurationToHMS } from 'common/formatters'; import { timestampToDate } from 'common/utils'; import { useCommonStyles } from 'components/common/styles'; diff --git a/src/components/Executions/TaskExecutionsList/TaskExecutionsListItem.tsx b/src/components/Executions/TaskExecutionsList/TaskExecutionsListItem.tsx index 8735f7fadf..24d0879138 100644 --- a/src/components/Executions/TaskExecutionsList/TaskExecutionsListItem.tsx +++ b/src/components/Executions/TaskExecutionsList/TaskExecutionsListItem.tsx @@ -1,6 +1,6 @@ import { makeStyles, Theme } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import { TaskExecutionPhase } from 'models/Execution/enums'; import { TaskExecution } from 'models/Execution/types'; diff --git a/src/components/Launch/LaunchForm/NoInputsNeeded.tsx b/src/components/Launch/LaunchForm/NoInputsNeeded.tsx index f2bff9e2e8..3a2fa7d153 100644 --- a/src/components/Launch/LaunchForm/NoInputsNeeded.tsx +++ b/src/components/Launch/LaunchForm/NoInputsNeeded.tsx @@ -1,6 +1,6 @@ import { Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import * as React from 'react'; import { taskNoInputsString, workflowNoInputsString } from './constants'; diff --git a/src/components/Literals/LiteralMapViewer.tsx b/src/components/Literals/LiteralMapViewer.tsx index a1db4d4bba..d192bc8a6c 100644 --- a/src/components/Literals/LiteralMapViewer.tsx +++ b/src/components/Literals/LiteralMapViewer.tsx @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { sortedObjectEntries } from 'common/utils'; import { useCommonStyles } from 'components/common/styles'; import { Literal, LiteralMap } from 'models/Common/types'; diff --git a/src/components/Literals/PrintList.tsx b/src/components/Literals/PrintList.tsx index 8fcf2271f5..74cf960dde 100644 --- a/src/components/Literals/PrintList.tsx +++ b/src/components/Literals/PrintList.tsx @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import * as React from 'react'; import { htmlEntities } from './constants'; diff --git a/src/components/Literals/Scalar/ProtobufStructValue.tsx b/src/components/Literals/Scalar/ProtobufStructValue.tsx index d583fab8d3..0cf64bcf0a 100644 --- a/src/components/Literals/Scalar/ProtobufStructValue.tsx +++ b/src/components/Literals/Scalar/ProtobufStructValue.tsx @@ -1,4 +1,4 @@ -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { sortedObjectEntries } from 'common/utils'; import { useCommonStyles } from 'components/common/styles'; import { diff --git a/src/components/Navigation/DefaultAppBarContent.tsx b/src/components/Navigation/DefaultAppBarContent.tsx index 76c389070e..95637d5c04 100644 --- a/src/components/Navigation/DefaultAppBarContent.tsx +++ b/src/components/Navigation/DefaultAppBarContent.tsx @@ -1,5 +1,5 @@ import { makeStyles, Theme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { FlyteLogo } from 'components/common/FlyteLogo'; import { useCommonStyles } from 'components/common/styles'; import * as React from 'react'; diff --git a/src/components/Navigation/ProjectNavigation.tsx b/src/components/Navigation/ProjectNavigation.tsx index b5ce7b0bc5..f68d3cba2e 100644 --- a/src/components/Navigation/ProjectNavigation.tsx +++ b/src/components/Navigation/ProjectNavigation.tsx @@ -4,7 +4,7 @@ import ChevronRight from '@material-ui/icons/ChevronRight'; import DeviceHub from '@material-ui/icons/DeviceHub'; import LinearScale from '@material-ui/icons/LinearScale'; import TrendingFlat from '@material-ui/icons/TrendingFlat'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import { withRouteParams } from 'components/common/withRouteParams'; import { useProject, useProjects } from 'components/hooks/useProjects'; diff --git a/src/components/Navigation/ProjectSelector.tsx b/src/components/Navigation/ProjectSelector.tsx index 25cd8ea7d9..f8f30dccf8 100644 --- a/src/components/Navigation/ProjectSelector.tsx +++ b/src/components/Navigation/ProjectSelector.tsx @@ -1,7 +1,7 @@ import ButtonBase from '@material-ui/core/ButtonBase'; import { makeStyles, Theme } from '@material-ui/core/styles'; import ExpandMore from '@material-ui/icons/ExpandMore'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { KeyCodes } from 'common/constants'; import { useCommonStyles } from 'components/common/styles'; import { listhoverColor } from 'components/Theme/constants'; diff --git a/src/components/Navigation/SearchableProjectList.tsx b/src/components/Navigation/SearchableProjectList.tsx index 132b8696a5..b44f1fd64e 100644 --- a/src/components/Navigation/SearchableProjectList.tsx +++ b/src/components/Navigation/SearchableProjectList.tsx @@ -1,6 +1,6 @@ import { Fade, Tooltip, Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { SearchableList, SearchResult } from 'components/common/SearchableList'; import { useCommonStyles } from 'components/common/styles'; import { defaultProjectDescription } from 'components/SelectProject/constants'; diff --git a/src/components/Tables/DataList.tsx b/src/components/Tables/DataList.tsx index 45be9e9d48..3d1eb59bb7 100644 --- a/src/components/Tables/DataList.tsx +++ b/src/components/Tables/DataList.tsx @@ -1,6 +1,6 @@ import { ListProps, Typography } from '@material-ui/core'; import { makeStyles, Theme, useTheme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import { tablePlaceholderColor } from 'components/Theme/constants'; import * as React from 'react'; diff --git a/src/components/Tables/filters/FilterPopoverButton.tsx b/src/components/Tables/filters/FilterPopoverButton.tsx index 1def46a201..5bf6667355 100644 --- a/src/components/Tables/filters/FilterPopoverButton.tsx +++ b/src/components/Tables/filters/FilterPopoverButton.tsx @@ -2,7 +2,7 @@ import { Button, Popover } from '@material-ui/core'; import { fade, makeStyles, Theme } from '@material-ui/core/styles'; import Close from '@material-ui/icons/Close'; import ExpandMore from '@material-ui/icons/ExpandMore'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { buttonHoverColor, interactiveTextBackgroundColor, diff --git a/src/components/Task/SearchableTaskNameList.tsx b/src/components/Task/SearchableTaskNameList.tsx index 8da2641c1d..99248b83bb 100644 --- a/src/components/Task/SearchableTaskNameList.tsx +++ b/src/components/Task/SearchableTaskNameList.tsx @@ -2,7 +2,7 @@ import { Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; import ChevronRight from '@material-ui/icons/ChevronRight'; import ErrorOutline from '@material-ui/icons/ErrorOutline'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { noDescriptionString } from 'common/constants'; import { SearchResult } from 'components/common/SearchableList'; import { diff --git a/src/components/common/ContentContainer.tsx b/src/components/common/ContentContainer.tsx index c7acef69ab..76e9c06bf4 100644 --- a/src/components/common/ContentContainer.tsx +++ b/src/components/common/ContentContainer.tsx @@ -1,5 +1,5 @@ import { makeStyles, Theme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { contentContainerId } from 'common/constants'; import { contentMarginGridUnits, diff --git a/src/components/common/DetailsGroup.tsx b/src/components/common/DetailsGroup.tsx index 07928ea2d5..ad0eb19ec1 100644 --- a/src/components/common/DetailsGroup.tsx +++ b/src/components/common/DetailsGroup.tsx @@ -1,5 +1,5 @@ import { makeStyles, Theme, useTheme } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import * as React from 'react'; diff --git a/src/components/common/DropDownWindowButton.tsx b/src/components/common/DropDownWindowButton.tsx index 582a4a8412..fd72cce2b8 100644 --- a/src/components/common/DropDownWindowButton.tsx +++ b/src/components/common/DropDownWindowButton.tsx @@ -1,6 +1,6 @@ import Button, { ButtonProps } from '@material-ui/core/Button'; import Popover from '@material-ui/core/Popover'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import * as React from 'react'; const { useRef, useState } = React; diff --git a/src/components/common/ErrorBoundary.tsx b/src/components/common/ErrorBoundary.tsx index 651e2afae4..8d97f7b78c 100644 --- a/src/components/common/ErrorBoundary.tsx +++ b/src/components/common/ErrorBoundary.tsx @@ -2,7 +2,7 @@ import { CardContent } from '@material-ui/core'; import Card from '@material-ui/core/Card'; import { makeStyles, Theme } from '@material-ui/core/styles'; import ErrorOutline from '@material-ui/icons/ErrorOutline'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { log } from 'common/log'; import { useCommonStyles } from 'components/common/styles'; import { NotFound } from 'components/NotFound/NotFound'; diff --git a/src/components/common/ExpandableMonospaceText.tsx b/src/components/common/ExpandableMonospaceText.tsx index f0126b818c..19bfea40ed 100644 --- a/src/components/common/ExpandableMonospaceText.tsx +++ b/src/components/common/ExpandableMonospaceText.tsx @@ -1,7 +1,7 @@ import { Button, ButtonBase } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; import FileCopy from '@material-ui/icons/FileCopy'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { bodyFontFamily, errorBackgroundColor, diff --git a/src/components/common/LoadingSpinner.tsx b/src/components/common/LoadingSpinner.tsx index c88f6c1ba1..c687deb107 100644 --- a/src/components/common/LoadingSpinner.tsx +++ b/src/components/common/LoadingSpinner.tsx @@ -1,6 +1,6 @@ import { CircularProgress } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useDelayedValue } from 'components/hooks/useDelayedValue'; import * as React from 'react'; import { loadingSpinnerDelayMs } from './constants'; diff --git a/src/components/common/NewTargetLink.tsx b/src/components/common/NewTargetLink.tsx index 4af308ecde..fbdf9b45e7 100644 --- a/src/components/common/NewTargetLink.tsx +++ b/src/components/common/NewTargetLink.tsx @@ -1,7 +1,7 @@ import Link, { LinkProps } from '@material-ui/core/Link'; import { makeStyles } from '@material-ui/core/styles'; import OpenInNew from '@material-ui/icons/OpenInNew'; -import * as classnames from 'classnames'; +import classnames from 'classnames'; import { useCommonStyles } from 'components/common/styles'; import * as React from 'react'; diff --git a/yarn.lock b/yarn.lock index 2afdb39209..2f9e8676ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3446,11 +3446,6 @@ dependencies: "@types/node" "*" -"@types/classnames@^2.2.0": - version "2.2.11" - resolved "https://registry.yarnpkg.com/@types/classnames/-/classnames-2.2.11.tgz#2521cc86f69d15c5b90664e4829d84566052c1cf" - integrity sha512-2koNhpWm3DgWRp5tpkiJ8JGc1xTn2q0l+jUNUE7oMKXUf5NpI9AIdC4kbjGNFBdHtcxBD18LAksoudAVhFKCjw== - "@types/clean-css@*": version "4.2.2" resolved "https://registry.yarnpkg.com/@types/clean-css/-/clean-css-4.2.2.tgz#99fd79f6939c2b325938a1c569712e07dd97d709" @@ -6344,11 +6339,16 @@ classcat@^5.0.3: resolved "https://registry.yarnpkg.com/classcat/-/classcat-5.0.3.tgz#38eaa0ec6eb1b10faf101bbcef2afb319c23c17b" integrity sha512-6dK2ke4VEJZOFx2ZfdDAl5OhEL8lvkl6EHF92IfRePfHxQTqir5NlcNVUv+2idjDqCX2NDc8m8YSAI5NI975ZQ== -classnames@^2.2.5, classnames@^2.2.6: +classnames@^2.2.5: version "2.2.6" resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q== +classnames@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.3.1.tgz#dfcfa3891e306ec1dad105d0e88f4417b8535e8e" + integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA== + clean-css@4.2.x, clean-css@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78"