From 637ccfbc2bf9d9ea51be4bea402b280c812b45cd Mon Sep 17 00:00:00 2001 From: Banks Nussman Date: Tue, 27 Jun 2023 13:32:32 -0400 Subject: [PATCH 1/2] delete core files and clean up exports --- .../AccessPanel/UserSSHKeyPanel.tsx | 2 +- .../Accordion/Accordion.stories.mdx | 2 +- .../src/components/AddNewLink/AddNewLink.tsx | 2 +- .../src/components/Button/Button.stories.tsx | 2 +- .../src/components/Button/Button.test.tsx | 2 +- .../manager/src/components/Button/Button.tsx | 29 +++++++++++-------- .../manager/src/components/Button/index.ts | 5 ---- .../src/components/CheckoutBar/styles.ts | 2 +- .../ConfirmationDialog.stories.tsx | 2 +- .../DeletionDialog/DeletionDialog.tsx | 2 +- .../DismissibleBanner.stories.mdx | 2 +- .../components/DownloadCSV/DownloadCSV.tsx | 2 +- .../src/components/Drawer/Drawer.stories.mdx | 2 +- .../manager/src/components/Drawer/Drawer.tsx | 2 +- .../EditableEntityLabel/EditableInput.tsx | 2 +- .../components/EditableText/EditableText.tsx | 2 +- .../EnhancedNumberInput.tsx | 2 +- .../EntityHeader/EntityHeader.stories.tsx | 2 +- .../FileUploader/FileUploader.styles.ts | 2 +- .../components/IconTextLink/IconTextLink.tsx | 2 +- .../InlineMenuAction/InlineMenuAction.tsx | 2 +- .../LandingHeader/LandingHeader.stories.tsx | 3 +- .../LandingHeader/LandingHeader.tsx | 2 +- .../components/LineGraph/LineGraph.styles.ts | 2 +- .../MultipleIPInput/MultipleIPInput.tsx | 2 +- .../DeletePaymentMethodDialog.tsx | 2 +- .../components/Placeholder/Placeholder.tsx | 2 +- .../PromotionalOfferCard.tsx | 2 +- .../ShowMoreExpansion/ShowMoreExpansion.tsx | 2 +- .../SingleTextFieldForm.tsx | 2 +- .../components/StackScript/StackScript.tsx | 2 +- packages/manager/src/components/Tile/Tile.tsx | 2 +- .../TypeToConfirmDialog.tsx | 2 +- .../manager/src/components/core/Button.ts | 6 ---- .../manager/src/components/core/ButtonBase.ts | 8 ----- .../features/Account/CloseAccountDialog.tsx | 2 +- .../features/Account/CloseAccountSetting.tsx | 2 +- .../src/features/Account/EnableManaged.tsx | 2 +- .../features/Account/EnableObjectStorage.tsx | 2 +- .../src/features/Backups/BackupDrawer.tsx | 2 +- .../src/features/Billing/BillingDetail.tsx | 2 +- .../BillingSummary/BillingSummary.tsx | 2 +- .../PaymentBits/CreditCardDialog.tsx | 2 +- .../PaymentDrawer/PaymentDrawer.tsx | 2 +- .../BillingSummary/PromoDialog.tsx | 2 +- .../UpdateContactInformationForm.tsx | 2 +- .../AddCreditCardForm.tsx | 2 +- .../Billing/InvoiceDetail/InvoiceDetail.tsx | 2 +- .../features/CancelLanding/CancelLanding.tsx | 2 +- .../DatabaseCreate/DatabaseCreate.tsx | 2 +- .../DatabaseDetail/AccessControls.tsx | 2 +- .../DatabaseDetail/AddAccessControlDrawer.tsx | 2 +- .../RestoreFromBackupDialog.tsx | 2 +- .../DatabaseSettingsDeleteClusterDialog.tsx | 2 +- .../DatabaseSettingsMenuItem.tsx | 2 +- .../DatabaseSettingsResetPasswordDialog.tsx | 2 +- .../DatabaseSettings/MaintenanceWindow.tsx | 2 +- .../DatabaseSummaryConnectionDetails.tsx | 2 +- .../features/Domains/CloneDomainDrawer.tsx | 2 +- .../Domains/CreateDomain/CreateDomain.tsx | 2 +- .../src/features/Domains/DeleteDomain.tsx | 2 +- .../features/Domains/DisableDomainDialog.tsx | 2 +- .../features/Domains/DomainRecordDrawer.tsx | 2 +- .../src/features/Domains/DomainRecords.tsx | 2 +- .../Domains/DomainZoneImportDrawer.tsx | 2 +- .../src/features/Domains/DomainsLanding.tsx | 2 +- .../Domains/DownloadDNSZoneFileButton.tsx | 2 +- .../src/features/Domains/EditDomainDrawer.tsx | 2 +- .../TransferCheckoutBar.tsx | 2 +- .../ConfirmTransferCancelDialog.tsx | 2 +- .../ConfirmTransferDialog.tsx | 2 +- .../CreateTransferSuccessDialog.tsx | 2 +- .../TransferControls.tsx | 2 +- .../Devices/AddDeviceDrawer.tsx | 2 +- .../Devices/FirewallLinodesLanding.tsx | 2 +- .../Devices/RemoveDeviceDialog.tsx | 2 +- .../FirewallDetail/Rules/FirewallRuleForm.tsx | 2 +- .../Rules/FirewallRuleTable.tsx | 2 +- .../Rules/FirewallRulesLanding.tsx | 2 +- .../FirewallLanding/CreateFirewallDrawer.tsx | 2 +- .../FirewallLanding/FirewallDialog.tsx | 2 +- .../GlobalNotifications/ComplianceBanner.tsx | 2 +- .../ComplianceUpdateModal.tsx | 2 +- .../GlobalNotifications/EmailBounce.tsx | 2 +- .../TaxCollectionBanner.tsx | 2 +- .../src/features/Images/ImageUpload.tsx | 2 +- .../Images/ImagesCreate/CreateImageTab.tsx | 2 +- .../src/features/Images/ImagesDrawer.tsx | 2 +- .../src/features/Images/ImagesLanding.tsx | 2 +- .../DeleteKubernetesClusterDialog.tsx | 2 +- .../KubeConfigPanel.tsx | 2 +- .../KubeSummaryPanel.tsx | 2 +- .../NodePoolsDisplay/AddNodePoolDrawer.tsx | 2 +- .../NodePoolsDisplay/AutoscalePoolDialog.tsx | 2 +- .../NodePoolsDisplay/DeleteNodePoolDialog.tsx | 2 +- .../NodePoolsDisplay/NodePool.tsx | 2 +- .../NodePoolsDisplay/NodePoolsDisplay.tsx | 2 +- .../NodePoolsDisplay/RecycleNodeDialog.tsx | 2 +- .../NodePoolsDisplay/ResizeNodePoolDrawer.tsx | 2 +- .../RecycleClusterDialog.tsx | 2 +- .../RecycleNodePoolDialog.tsx | 2 +- .../UpgradeClusterDialog.tsx | 2 +- .../UpgradeKubernetesVersionBanner.tsx | 2 +- .../Kubernetes/UpgradeVersionModal.tsx | 2 +- .../LinodeConfigSelectionDrawer.tsx | 2 +- .../features/Linodes/CloneLanding/Details.tsx | 2 +- .../features/Linodes/LinodeEntityDetail.tsx | 2 +- .../LinodesCreate/ApiAwarenessModal/index.tsx | 2 +- .../Linodes/LinodesCreate/LinodeCreate.tsx | 2 +- .../KubernetesPlanSelection.tsx | 2 +- .../LinodeBackup/CancelBackupsDialog.tsx | 2 +- .../LinodeBackup/CaptureSnapshot.tsx | 2 +- .../CaptureSnapshotConfirmationDialog.tsx | 2 +- .../LinodeBackup/EnableBackupsDialog.tsx | 2 +- .../LinodeBackup/LinodeBackups.tsx | 2 +- .../LinodeBackup/RestoreToLinodeDrawer.tsx | 2 +- .../LinodeBackup/ScheduleSettings.tsx | 2 +- .../LinodeConfigs/BootConfigDialog.tsx | 2 +- .../LinodeConfigs/DeleteConfigDialog.tsx | 2 +- .../LinodeConfigs/LinodeConfigDialog.tsx | 2 +- .../LinodeNetworking/AddIPDrawer.tsx | 2 +- .../LinodeNetworking/DeleteIPDialog.tsx | 2 +- .../LinodeNetworking/DeleteRangeDialog.tsx | 2 +- .../LinodeNetworking/EditIPRDNSDrawer.tsx | 2 +- .../LinodeNetworking/EditRangeRDNSDrawer.tsx | 2 +- .../LinodeNetworking/IPSharing.tsx | 2 +- .../LinodeNetworking/IPTransfer.tsx | 2 +- .../LinodeNetworking/LinodeNetworking.tsx | 2 +- .../LinodeNetworking/ViewIPDrawer.tsx | 2 +- .../LinodeNetworking/ViewRangeDrawer.tsx | 2 +- .../LinodeRebuild/RebuildFromImage.tsx | 2 +- .../LinodeRebuild/RebuildFromStackScript.tsx | 2 +- .../LinodeRescue/BareMetalRescue.tsx | 2 +- .../LinodeRescue/StandardRescueDialog.tsx | 2 +- .../LinodeResize/LinodeResize.tsx | 2 +- .../LinodeResize/ResizeConfirmationDialog.tsx | 2 +- .../LinodeSettingsAlertsPanel.tsx | 2 +- .../LinodeSettingsDeletePanel.tsx | 2 +- .../LinodeSettingsLabelPanel.tsx | 2 +- .../LinodeSettingsPasswordPanel.tsx | 2 +- .../LinodeStorage/CreateDiskDrawer.tsx | 2 +- .../CreateImageFromDiskDialog.tsx | 2 +- .../LinodeStorage/DeleteDiskDialog.tsx | 2 +- .../LinodeStorage/RenameDiskDrawer.tsx | 2 +- .../LinodeStorage/ResizeDiskDrawer.tsx | 2 +- .../MigrationNotification.tsx | 2 +- .../UpgradeVolumesDialog.tsx | 2 +- .../MutateDrawer/MutateDrawer.tsx | 2 +- .../Linodes/MigrateLinode/MigrateLinode.tsx | 2 +- .../Linodes/PowerActionsDialogOrDrawer.tsx | 2 +- .../LongviewLanding/LongviewClientHeader.tsx | 2 +- .../LongviewLanding/LongviewDeleteDialog.tsx | 2 +- .../LongviewLanding/LongviewPlans.tsx | 2 +- .../LongviewLanding/SubscriptionDialog.tsx | 2 +- .../Managed/Contacts/ContactsDrawer.tsx | 2 +- .../Credentials/AddCredentialDrawer.tsx | 2 +- .../Credentials/UpdateCredentialDrawer.tsx | 2 +- .../ManagedDashboardCard/MonitorTickets.tsx | 2 +- .../src/features/Managed/MonitorDrawer.tsx | 2 +- .../Managed/Monitors/HistoryDrawer.tsx | 2 +- .../Managed/SSHAccess/EditSSHAccessDrawer.tsx | 2 +- .../Managed/SSHAccess/LinodePubKey.tsx | 2 +- .../src/features/Managed/SupportWidget.tsx | 2 +- .../NodeBalancers/NodeBalancerConfigNode.tsx | 2 +- .../NodeBalancers/NodeBalancerConfigPanel.tsx | 2 +- .../NodeBalancers/NodeBalancerCreate.tsx | 2 +- .../NodeBalancerConfigurations.tsx | 2 +- .../NodeBalancerSettings.tsx | 2 +- .../AccessKeyLanding/AccessKeyDrawer.tsx | 2 +- .../RevokeAccessKeyDialog.tsx | 2 +- .../BucketDetail/AccessSelect.tsx | 2 +- .../BucketDetail/BucketDetail.styles.ts | 2 +- .../BucketDetail/BucketDetail.tsx | 2 +- .../ObjectStorage/BucketDetail/BucketSSL.tsx | 2 +- .../BucketDetail/CreateFolderDrawer.tsx | 2 +- .../BucketLanding/CreateBucketDrawer.tsx | 2 +- .../EnableObjectStorageModal.tsx | 2 +- .../ObjectUploader/FileUpload.tsx | 2 +- .../ObjectUploader/ObjectUploader.tsx | 2 +- .../features/OneClickApps/AppDetailDrawer.tsx | 2 +- .../APITokens/CreateAPITokenDrawer.tsx | 2 +- .../Profile/APITokens/EditAPITokenDrawer.tsx | 2 +- .../Profile/APITokens/RevokeTokenDialog.tsx | 2 +- .../PhoneVerification/PhoneVerification.tsx | 2 +- .../RevokeTrustedDevicesDialog.tsx | 2 +- .../AuthenticationSettings/SMSMessaging.tsx | 2 +- .../SecurityQuestions/SecurityQuestions.tsx | 2 +- .../AuthenticationSettings/TPADialog.tsx | 2 +- .../TPAProviders.styles.ts | 2 +- .../TwoFactor/ConfirmToken.tsx | 2 +- .../TwoFactor/DisableTwoFactorDialog.tsx | 2 +- .../TwoFactor/ScratchCodeDialog.tsx | 2 +- .../Profile/DisplaySettings/TimezoneForm.tsx | 2 +- .../Profile/LishSettings/LishSettings.tsx | 2 +- .../OAuthClients/CreateOAuthClientDrawer.tsx | 2 +- .../OAuthClients/DeleteOAuthClientDialog.tsx | 2 +- .../OAuthClients/EditOAuthClientDrawer.tsx | 2 +- .../OAuthClients/ResetOAuthClientDialog.tsx | 2 +- .../Profile/SSHKeys/CreateSSHKeyDrawer.tsx | 2 +- .../Profile/SSHKeys/DeleteSSHKeyDialog.tsx | 2 +- .../Profile/SSHKeys/EditSSHKeyDrawer.tsx | 2 +- .../SecretTokenDialog/SecretTokenDialog.tsx | 2 +- .../Profile/Settings/PreferenceEditor.tsx | 2 +- .../src/features/Search/ResultGroup.test.tsx | 2 +- .../src/features/Search/ResultGroup.tsx | 2 +- .../SelectStackScriptPanel.tsx | 2 +- .../StackScriptSelectionRow.tsx | 2 +- .../StackScriptBase/StackScriptBase.tsx | 2 +- .../StackScriptCreate/StackScriptCreate.tsx | 2 +- .../StackScriptForm/StackScriptForm.tsx | 2 +- .../StackScriptPanelContent.tsx | 2 +- .../src/features/Support/AttachFileForm.tsx | 2 +- .../SupportTicketDetail/CloseTicketLink.tsx | 2 +- .../TabbedReply/ReplyActions.tsx | 2 +- .../SupportTickets/SupportTicketDrawer.tsx | 2 +- .../ToastNotifications.stories.mdx | 2 +- .../TopMenu/AddNewMenu/AddNewMenu.tsx | 2 +- .../NotificationMenu/NotificationMenu.tsx | 2 +- .../src/features/Users/CreateUserDrawer.tsx | 2 +- .../Users/UserDeleteConfirmationDialog.tsx | 2 +- .../src/features/Users/UserPermissions.tsx | 2 +- .../src/features/Users/UserProfile.tsx | 2 +- .../features/Volumes/UpgradeVolumeDialog.tsx | 2 +- .../Volumes/VolumeAttachmentDrawer.tsx | 2 +- .../Volumes/VolumeCreate/CreateVolumeForm.tsx | 2 +- .../VolumeDrawer/ResizeVolumesInstruction.tsx | 2 +- .../VolumeDrawer/VolumesActionsPanel.tsx | 2 +- 227 files changed, 241 insertions(+), 254 deletions(-) delete mode 100644 packages/manager/src/components/Button/index.ts delete mode 100644 packages/manager/src/components/core/Button.ts delete mode 100644 packages/manager/src/components/core/ButtonBase.ts diff --git a/packages/manager/src/components/AccessPanel/UserSSHKeyPanel.tsx b/packages/manager/src/components/AccessPanel/UserSSHKeyPanel.tsx index 6bafbfbeadd..868802f2cbc 100644 --- a/packages/manager/src/components/AccessPanel/UserSSHKeyPanel.tsx +++ b/packages/manager/src/components/AccessPanel/UserSSHKeyPanel.tsx @@ -1,6 +1,6 @@ import { Theme } from '@mui/material/styles'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import { TableBody } from 'src/components/TableBody'; import { TableHead } from 'src/components/TableHead'; diff --git a/packages/manager/src/components/Accordion/Accordion.stories.mdx b/packages/manager/src/components/Accordion/Accordion.stories.mdx index 5aa566d1393..281aceef302 100644 --- a/packages/manager/src/components/Accordion/Accordion.stories.mdx +++ b/packages/manager/src/components/Accordion/Accordion.stories.mdx @@ -1,4 +1,4 @@ -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import ActionsPanel from '../ActionsPanel'; import Accordion from './Accordion'; import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs'; diff --git a/packages/manager/src/components/AddNewLink/AddNewLink.tsx b/packages/manager/src/components/AddNewLink/AddNewLink.tsx index 79b72dc698c..5f1b08e63f2 100644 --- a/packages/manager/src/components/AddNewLink/AddNewLink.tsx +++ b/packages/manager/src/components/AddNewLink/AddNewLink.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Tooltip, { TooltipProps } from 'src/components/core/Tooltip'; -import Button from '../Button'; +import { Button } from '../Button/Button'; export interface Props extends Omit { display?: string; diff --git a/packages/manager/src/components/Button/Button.stories.tsx b/packages/manager/src/components/Button/Button.stories.tsx index e9bd00c16dc..96a6dd9a4ce 100644 --- a/packages/manager/src/components/Button/Button.stories.tsx +++ b/packages/manager/src/components/Button/Button.stories.tsx @@ -1,7 +1,7 @@ import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { action } from '@storybook/addon-actions'; -import Button from './Button'; +import { Button } from './Button'; import { StyledLinkButton } from 'src/components/Button/StyledLinkButton'; /** diff --git a/packages/manager/src/components/Button/Button.test.tsx b/packages/manager/src/components/Button/Button.test.tsx index 5477a346213..be2d4fc2527 100644 --- a/packages/manager/src/components/Button/Button.test.tsx +++ b/packages/manager/src/components/Button/Button.test.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import Button from './Button'; +import { Button } from './Button'; import { render } from '@testing-library/react'; describe('Button', () => { diff --git a/packages/manager/src/components/Button/Button.tsx b/packages/manager/src/components/Button/Button.tsx index 920986ad1ec..335444d46d9 100644 --- a/packages/manager/src/components/Button/Button.tsx +++ b/packages/manager/src/components/Button/Button.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Reload from 'src/assets/icons/reload.svg'; -import _Button, { ButtonProps } from '@mui/material/Button'; +import _Button, { ButtonProps as _ButtonProps } from '@mui/material/Button'; import { TooltipIcon } from 'src/components/TooltipIcon/TooltipIcon'; import { useTheme, styled, Theme } from '@mui/material/styles'; import { SxProps } from '@mui/system'; @@ -9,18 +9,27 @@ import { rotate360 } from '../../styles/keyframes'; export type ButtonType = 'primary' | 'secondary' | 'outlined'; -export interface Props extends ButtonProps { +export interface ButtonProps extends _ButtonProps { /** The button variant to render */ buttonType?: ButtonType; /** Additional css class to pass to the component */ className?: string; /** The `sx` prop can be either object or function */ sx?: SxProps; - /** Reduce the padding on the x-axis */ + /** + * Reduce the padding on the x-axis + * @default false + */ compactX?: boolean; - /** Reduce the padding on the y-axis */ + /** + * Reduce the padding on the y-axis + * @default false + */ compactY?: boolean; - /** Show a loading indicator */ + /** + * Show a loading indicator + * @default false + */ loading?: boolean; /** Tooltip text */ tooltipText?: string; @@ -31,7 +40,7 @@ export interface Props extends ButtonProps { const StyledButton = styled(_Button, { shouldForwardProp: (prop) => isPropValid(['compactX', 'compactY', 'loading', 'buttonType'], prop), -})(({ theme, ...props }) => ({ +})(({ theme, ...props }) => ({ ...(props.buttonType === 'secondary' && props.compactX && { minWidth: 50, @@ -67,7 +76,7 @@ const Span = styled('span')({ }, }); -const Button = React.forwardRef( +export const Button = React.forwardRef( ( { // default to secondary as some components never define a buttonType (usually buttons with icons) @@ -84,7 +93,7 @@ const Button = React.forwardRef( tooltipText, tooltipAnalyticsEvent, ...rest - }: Props, + }, ref ) => { const theme = useTheme(); @@ -129,7 +138,3 @@ const Button = React.forwardRef( ); } ); - -Button.displayName = 'Button'; - -export default Button; diff --git a/packages/manager/src/components/Button/index.ts b/packages/manager/src/components/Button/index.ts deleted file mode 100644 index c181bd7bb4c..00000000000 --- a/packages/manager/src/components/Button/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import Button, { Props as _ButtonProps } from './Button'; - -/* tslint:disable */ -export interface ButtonProps extends _ButtonProps {} -export default Button; diff --git a/packages/manager/src/components/CheckoutBar/styles.ts b/packages/manager/src/components/CheckoutBar/styles.ts index 6fa04c3b183..4f512508dea 100644 --- a/packages/manager/src/components/CheckoutBar/styles.ts +++ b/packages/manager/src/components/CheckoutBar/styles.ts @@ -1,6 +1,6 @@ import { useTheme } from '@mui/material/styles'; import { styled } from '@mui/system'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; const StyledButton = styled(Button)(({ theme }) => ({ marginTop: 18, diff --git a/packages/manager/src/components/ConfirmationDialog/ConfirmationDialog.stories.tsx b/packages/manager/src/components/ConfirmationDialog/ConfirmationDialog.stories.tsx index 7dc2c304db1..f00e1df35b9 100644 --- a/packages/manager/src/components/ConfirmationDialog/ConfirmationDialog.stories.tsx +++ b/packages/manager/src/components/ConfirmationDialog/ConfirmationDialog.stories.tsx @@ -1,6 +1,6 @@ import React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { action } from '@storybook/addon-actions'; import type { Meta, StoryObj } from '@storybook/react'; diff --git a/packages/manager/src/components/DeletionDialog/DeletionDialog.tsx b/packages/manager/src/components/DeletionDialog/DeletionDialog.tsx index aa16f7f7dd4..5ac5fd08744 100644 --- a/packages/manager/src/components/DeletionDialog/DeletionDialog.tsx +++ b/packages/manager/src/components/DeletionDialog/DeletionDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { useTheme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/components/DismissibleBanner/DismissibleBanner.stories.mdx b/packages/manager/src/components/DismissibleBanner/DismissibleBanner.stories.mdx index 22bcf944f95..1efbfc88799 100644 --- a/packages/manager/src/components/DismissibleBanner/DismissibleBanner.stories.mdx +++ b/packages/manager/src/components/DismissibleBanner/DismissibleBanner.stories.mdx @@ -1,5 +1,5 @@ import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import DismissibleBanner from './DismissibleBanner'; import Grid from '@mui/material/Unstable_Grid2'; import Link from 'src/components/Link'; diff --git a/packages/manager/src/components/DownloadCSV/DownloadCSV.tsx b/packages/manager/src/components/DownloadCSV/DownloadCSV.tsx index dcb094523ff..76cf6ef0b26 100644 --- a/packages/manager/src/components/DownloadCSV/DownloadCSV.tsx +++ b/packages/manager/src/components/DownloadCSV/DownloadCSV.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CSVLink } from 'react-csv'; import { SxProps } from '@mui/system'; import type { ButtonType } from 'src/components/Button/Button'; diff --git a/packages/manager/src/components/Drawer/Drawer.stories.mdx b/packages/manager/src/components/Drawer/Drawer.stories.mdx index 9d406150e60..13a828ebda8 100644 --- a/packages/manager/src/components/Drawer/Drawer.stories.mdx +++ b/packages/manager/src/components/Drawer/Drawer.stories.mdx @@ -1,5 +1,5 @@ import React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import ActionsPanel from '../ActionsPanel'; import { TextField } from '../TextField'; diff --git a/packages/manager/src/components/Drawer/Drawer.tsx b/packages/manager/src/components/Drawer/Drawer.tsx index 7f0727078cb..ce2f32c3454 100644 --- a/packages/manager/src/components/Drawer/Drawer.tsx +++ b/packages/manager/src/components/Drawer/Drawer.tsx @@ -1,6 +1,6 @@ import Close from '@mui/icons-material/Close'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import _Drawer, { DrawerProps } from 'src/components/core/Drawer'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/components/EditableEntityLabel/EditableInput.tsx b/packages/manager/src/components/EditableEntityLabel/EditableInput.tsx index 39bce5210a9..fc0fca214b6 100644 --- a/packages/manager/src/components/EditableEntityLabel/EditableInput.tsx +++ b/packages/manager/src/components/EditableEntityLabel/EditableInput.tsx @@ -3,7 +3,7 @@ import Close from '@mui/icons-material/Close'; import Edit from '@mui/icons-material/Edit'; import classNames from 'classnames'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import ClickAwayListener from 'src/components/core/ClickAwayListener'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/components/EditableText/EditableText.tsx b/packages/manager/src/components/EditableText/EditableText.tsx index 3a3ccb686cf..18b90712e13 100644 --- a/packages/manager/src/components/EditableText/EditableText.tsx +++ b/packages/manager/src/components/EditableText/EditableText.tsx @@ -4,7 +4,7 @@ import Edit from '@mui/icons-material/Edit'; import { Theme } from '@mui/material/styles'; import * as React from 'react'; import { Link } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { H1Header } from 'src/components/H1Header/H1Header'; import ClickAwayListener from 'src/components/core/ClickAwayListener'; import { fadeIn } from 'src/styles/keyframes'; diff --git a/packages/manager/src/components/EnhancedNumberInput/EnhancedNumberInput.tsx b/packages/manager/src/components/EnhancedNumberInput/EnhancedNumberInput.tsx index 4e70e271be4..5b4565a7c3e 100644 --- a/packages/manager/src/components/EnhancedNumberInput/EnhancedNumberInput.tsx +++ b/packages/manager/src/components/EnhancedNumberInput/EnhancedNumberInput.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import Minus from 'src/assets/icons/LKEminusSign.svg'; import Plus from 'src/assets/icons/LKEplusSign.svg'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { styled } from '@mui/material/styles'; import { TextField } from 'src/components/TextField'; import Box from '@mui/material/Box'; diff --git a/packages/manager/src/components/EntityHeader/EntityHeader.stories.tsx b/packages/manager/src/components/EntityHeader/EntityHeader.stories.tsx index 9c47457f4af..690258541d2 100644 --- a/packages/manager/src/components/EntityHeader/EntityHeader.stories.tsx +++ b/packages/manager/src/components/EntityHeader/EntityHeader.stories.tsx @@ -2,7 +2,7 @@ import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { EntityHeader } from 'src/components/EntityHeader/EntityHeader'; -import Button from '../Button'; +import { Button } from '../Button/Button'; import Link from '../Link'; import Box from 'src/components/core/Box'; import Hidden from 'src/components/core/Hidden'; diff --git a/packages/manager/src/components/FileUploader/FileUploader.styles.ts b/packages/manager/src/components/FileUploader/FileUploader.styles.ts index 285228ab111..a996aff7afe 100644 --- a/packages/manager/src/components/FileUploader/FileUploader.styles.ts +++ b/packages/manager/src/components/FileUploader/FileUploader.styles.ts @@ -1,4 +1,4 @@ -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { styled } from '@mui/material/styles'; import { isPropValid } from 'src/utilities/isPropValid'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/components/IconTextLink/IconTextLink.tsx b/packages/manager/src/components/IconTextLink/IconTextLink.tsx index fad5f34c193..8c43d508a87 100644 --- a/packages/manager/src/components/IconTextLink/IconTextLink.tsx +++ b/packages/manager/src/components/IconTextLink/IconTextLink.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { Link } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; import SvgIcon from 'src/components/core/SvgIcon'; diff --git a/packages/manager/src/components/InlineMenuAction/InlineMenuAction.tsx b/packages/manager/src/components/InlineMenuAction/InlineMenuAction.tsx index a99d57e4292..9b74a222286 100644 --- a/packages/manager/src/components/InlineMenuAction/InlineMenuAction.tsx +++ b/packages/manager/src/components/InlineMenuAction/InlineMenuAction.tsx @@ -1,7 +1,7 @@ /* eslint-disable react/jsx-no-useless-fragment */ import * as React from 'react'; import { Link } from 'react-router-dom'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/components/LandingHeader/LandingHeader.stories.tsx b/packages/manager/src/components/LandingHeader/LandingHeader.stories.tsx index b46b6615b11..ac5da03b370 100644 --- a/packages/manager/src/components/LandingHeader/LandingHeader.stories.tsx +++ b/packages/manager/src/components/LandingHeader/LandingHeader.stories.tsx @@ -2,7 +2,8 @@ import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import LandingHeader from './LandingHeader'; -import Button from '../Button'; +import { Button } from '../Button/Button'; + const meta: Meta = { title: 'Components/LandingHeader', component: LandingHeader, diff --git a/packages/manager/src/components/LandingHeader/LandingHeader.tsx b/packages/manager/src/components/LandingHeader/LandingHeader.tsx index 4e05b29f8c4..1eacd61b2bc 100644 --- a/packages/manager/src/components/LandingHeader/LandingHeader.tsx +++ b/packages/manager/src/components/LandingHeader/LandingHeader.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Breadcrumb, BreadcrumbProps, diff --git a/packages/manager/src/components/LineGraph/LineGraph.styles.ts b/packages/manager/src/components/LineGraph/LineGraph.styles.ts index 2c50493765f..5fe5aa787f6 100644 --- a/packages/manager/src/components/LineGraph/LineGraph.styles.ts +++ b/packages/manager/src/components/LineGraph/LineGraph.styles.ts @@ -1,4 +1,4 @@ -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Table } from 'src/components/Table'; import { TableHead } from 'src/components/TableHead'; import { TableBody } from 'src/components/TableBody'; diff --git a/packages/manager/src/components/MultipleIPInput/MultipleIPInput.tsx b/packages/manager/src/components/MultipleIPInput/MultipleIPInput.tsx index 85f9865b854..4038a2edc27 100644 --- a/packages/manager/src/components/MultipleIPInput/MultipleIPInput.tsx +++ b/packages/manager/src/components/MultipleIPInput/MultipleIPInput.tsx @@ -2,7 +2,7 @@ import { InputBaseProps } from '@mui/material/InputBase'; import Close from '@mui/icons-material/Close'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import InputLabel from 'src/components/core/InputLabel'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/components/PaymentMethodRow/DeletePaymentMethodDialog.tsx b/packages/manager/src/components/PaymentMethodRow/DeletePaymentMethodDialog.tsx index 792bc6f6e3d..df7456b2f43 100644 --- a/packages/manager/src/components/PaymentMethodRow/DeletePaymentMethodDialog.tsx +++ b/packages/manager/src/components/PaymentMethodRow/DeletePaymentMethodDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from '../ActionsPanel'; -import Button from '../Button'; +import { Button } from '../Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { PaymentMethod } from '@linode/api-v4/lib/account/types'; import CreditCard from 'src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/CreditCard'; diff --git a/packages/manager/src/components/Placeholder/Placeholder.tsx b/packages/manager/src/components/Placeholder/Placeholder.tsx index 1d6cf0b7781..fddaacc8401 100644 --- a/packages/manager/src/components/Placeholder/Placeholder.tsx +++ b/packages/manager/src/components/Placeholder/Placeholder.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import LinodeIcon from 'src/assets/addnewmenu/linode.svg'; -import Button, { ButtonProps } from 'src/components/Button'; +import { Button, ButtonProps } from 'src/components/Button/Button'; import { styled, useTheme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; import { H1Header } from 'src/components/H1Header/H1Header'; diff --git a/packages/manager/src/components/PromotionalOfferCard/PromotionalOfferCard.tsx b/packages/manager/src/components/PromotionalOfferCard/PromotionalOfferCard.tsx index 4954ee040f4..7b2c86ae9d7 100644 --- a/packages/manager/src/components/PromotionalOfferCard/PromotionalOfferCard.tsx +++ b/packages/manager/src/components/PromotionalOfferCard/PromotionalOfferCard.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { Link } from 'react-router-dom'; import HeavenlyBucketIcon from 'src/assets/icons/promotionalOffers/heavenly-bucket.svg'; -import Button from 'src/components/core/Button'; +import Button from '@mui/material/Button'; import Paper from 'src/components/core/Paper'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/components/ShowMoreExpansion/ShowMoreExpansion.tsx b/packages/manager/src/components/ShowMoreExpansion/ShowMoreExpansion.tsx index eea3bddd241..c6bb2734bf2 100644 --- a/packages/manager/src/components/ShowMoreExpansion/ShowMoreExpansion.tsx +++ b/packages/manager/src/components/ShowMoreExpansion/ShowMoreExpansion.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; import KeyboardArrowRight from '@mui/icons-material/KeyboardArrowRight'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Collapse from 'src/components/core/Collapse'; const useStyles = makeStyles()( diff --git a/packages/manager/src/components/SingleTextFieldForm/SingleTextFieldForm.tsx b/packages/manager/src/components/SingleTextFieldForm/SingleTextFieldForm.tsx index 4991112aa19..38d6fd104c0 100644 --- a/packages/manager/src/components/SingleTextFieldForm/SingleTextFieldForm.tsx +++ b/packages/manager/src/components/SingleTextFieldForm/SingleTextFieldForm.tsx @@ -1,7 +1,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Box from 'src/components/core/Box'; import { Notice } from 'src/components/Notice/Notice'; import { TextField, TextFieldProps } from 'src/components/TextField'; diff --git a/packages/manager/src/components/StackScript/StackScript.tsx b/packages/manager/src/components/StackScript/StackScript.tsx index bf83eabe834..b9cc9968c0e 100644 --- a/packages/manager/src/components/StackScript/StackScript.tsx +++ b/packages/manager/src/components/StackScript/StackScript.tsx @@ -3,7 +3,7 @@ import Box from '@mui/material/Box'; import { Theme, useTheme } from '@mui/material/styles'; import * as React from 'react'; import { Link, useHistory } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip'; import { Chip } from 'src/components/core/Chip'; import Divider from 'src/components/core/Divider'; diff --git a/packages/manager/src/components/Tile/Tile.tsx b/packages/manager/src/components/Tile/Tile.tsx index ab9a504b5e2..afd36e845a9 100644 --- a/packages/manager/src/components/Tile/Tile.tsx +++ b/packages/manager/src/components/Tile/Tile.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import Button from 'src/components/core/Button'; +import Button from '@mui/material/Button'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/components/TypeToConfirmDialog/TypeToConfirmDialog.tsx b/packages/manager/src/components/TypeToConfirmDialog/TypeToConfirmDialog.tsx index 2ae1dced167..06a1f3225c2 100644 --- a/packages/manager/src/components/TypeToConfirmDialog/TypeToConfirmDialog.tsx +++ b/packages/manager/src/components/TypeToConfirmDialog/TypeToConfirmDialog.tsx @@ -1,7 +1,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog, ConfirmationDialogProps, diff --git a/packages/manager/src/components/core/Button.ts b/packages/manager/src/components/core/Button.ts deleted file mode 100644 index 624d8120ce3..00000000000 --- a/packages/manager/src/components/core/Button.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Button, { ButtonProps as _ButtonProps } from '@mui/material/Button'; - -/* tslint:disable-next-line:no-empty-interface */ -export interface ButtonProps extends _ButtonProps {} - -export default Button; diff --git a/packages/manager/src/components/core/ButtonBase.ts b/packages/manager/src/components/core/ButtonBase.ts deleted file mode 100644 index c5c6a43a1fb..00000000000 --- a/packages/manager/src/components/core/ButtonBase.ts +++ /dev/null @@ -1,8 +0,0 @@ -import ButtonBase, { - ButtonBaseProps as _ButtonBaseProps, -} from '@mui/material/ButtonBase'; - -/* tslint:disable-next-line:no-empty-interface */ -export interface ButtonBaseProps extends _ButtonBaseProps {} - -export default ButtonBase; diff --git a/packages/manager/src/features/Account/CloseAccountDialog.tsx b/packages/manager/src/features/Account/CloseAccountDialog.tsx index 8fb152fc207..f0dcd07cb31 100644 --- a/packages/manager/src/features/Account/CloseAccountDialog.tsx +++ b/packages/manager/src/features/Account/CloseAccountDialog.tsx @@ -3,7 +3,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import { useHistory } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Account/CloseAccountSetting.tsx b/packages/manager/src/features/Account/CloseAccountSetting.tsx index 655cf7aee20..fe454f3a318 100644 --- a/packages/manager/src/features/Account/CloseAccountSetting.tsx +++ b/packages/manager/src/features/Account/CloseAccountSetting.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Accordion from 'src/components/Accordion'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Grid from '@mui/material/Unstable_Grid2'; import CloseAccountDialog from './CloseAccountDialog'; diff --git a/packages/manager/src/features/Account/EnableManaged.tsx b/packages/manager/src/features/Account/EnableManaged.tsx index 84e2a859676..b3f0d97ddcc 100644 --- a/packages/manager/src/features/Account/EnableManaged.tsx +++ b/packages/manager/src/features/Account/EnableManaged.tsx @@ -3,7 +3,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import Accordion from 'src/components/Accordion'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import ExternalLink from 'src/components/ExternalLink'; diff --git a/packages/manager/src/features/Account/EnableObjectStorage.tsx b/packages/manager/src/features/Account/EnableObjectStorage.tsx index e57c3539cb5..d21c213aa04 100644 --- a/packages/manager/src/features/Account/EnableObjectStorage.tsx +++ b/packages/manager/src/features/Account/EnableObjectStorage.tsx @@ -5,7 +5,7 @@ import * as React from 'react'; import { Link } from 'react-router-dom'; import Accordion from 'src/components/Accordion'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { Notice } from 'src/components/Notice/Notice'; import { TypeToConfirm } from 'src/components/TypeToConfirm/TypeToConfirm'; diff --git a/packages/manager/src/features/Backups/BackupDrawer.tsx b/packages/manager/src/features/Backups/BackupDrawer.tsx index 7edbb9a368d..c29cbbd6e67 100644 --- a/packages/manager/src/features/Backups/BackupDrawer.tsx +++ b/packages/manager/src/features/Backups/BackupDrawer.tsx @@ -6,7 +6,7 @@ import { QueryClient } from 'react-query'; import { connect, MapDispatchToProps, MapStateToProps } from 'react-redux'; import { compose } from 'recompose'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { DisplayPrice } from 'src/components/DisplayPrice'; import Drawer from 'src/components/Drawer'; diff --git a/packages/manager/src/features/Billing/BillingDetail.tsx b/packages/manager/src/features/Billing/BillingDetail.tsx index 5c3df5fa9dd..bd615a08a29 100644 --- a/packages/manager/src/features/Billing/BillingDetail.tsx +++ b/packages/manager/src/features/Billing/BillingDetail.tsx @@ -14,7 +14,7 @@ import { PayPalScriptProvider } from '@paypal/react-paypal-js'; import { PAYPAL_CLIENT_ID } from 'src/constants'; import { styled } from '@mui/material/styles'; import Paper from '@mui/material/Paper'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; export const BillingDetail = () => { const { diff --git a/packages/manager/src/features/Billing/BillingPanels/BillingSummary/BillingSummary.tsx b/packages/manager/src/features/Billing/BillingPanels/BillingSummary/BillingSummary.tsx index 6d7a0769992..e20be454450 100644 --- a/packages/manager/src/features/Billing/BillingPanels/BillingSummary/BillingSummary.tsx +++ b/packages/manager/src/features/Billing/BillingPanels/BillingSummary/BillingSummary.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Currency } from 'src/components/Currency'; import Divider from 'src/components/core/Divider'; import Grid from '@mui/material/Unstable_Grid2'; diff --git a/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentBits/CreditCardDialog.tsx b/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentBits/CreditCardDialog.tsx index 4f035ce280b..7dfe14662d9 100644 --- a/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentBits/CreditCardDialog.tsx +++ b/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentBits/CreditCardDialog.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { compose } from 'recompose'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentDrawer.tsx b/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentDrawer.tsx index 4bdc1fc57a6..1e04aaf7df9 100644 --- a/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentDrawer.tsx +++ b/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentDrawer.tsx @@ -3,7 +3,7 @@ import { makePayment } from '@linode/api-v4/lib/account'; import { APIWarning } from '@linode/api-v4/lib/types'; import { useSnackbar } from 'notistack'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Divider from 'src/components/core/Divider'; import InputAdornment from 'src/components/core/InputAdornment'; import { makeStyles } from 'tss-react/mui'; diff --git a/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PromoDialog.tsx b/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PromoDialog.tsx index 56ebbf2a84a..d64e360228d 100644 --- a/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PromoDialog.tsx +++ b/packages/manager/src/features/Billing/BillingPanels/BillingSummary/PromoDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { makeStyles } from 'tss-react/mui'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/UpdateContactInformationForm/UpdateContactInformationForm.tsx b/packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/UpdateContactInformationForm/UpdateContactInformationForm.tsx index 543c4be0de6..90087ea5244 100644 --- a/packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/UpdateContactInformationForm/UpdateContactInformationForm.tsx +++ b/packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/UpdateContactInformationForm/UpdateContactInformationForm.tsx @@ -2,7 +2,7 @@ import countryData, { Region } from 'country-region-data'; import { pathOr } from 'ramda'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from 'tss-react/mui'; import EnhancedSelect, { Item } from 'src/components/EnhancedSelect/Select'; import Grid from '@mui/material/Unstable_Grid2'; diff --git a/packages/manager/src/features/Billing/BillingPanels/PaymentInfoPanel/AddPaymentMethodDrawer/AddCreditCardForm.tsx b/packages/manager/src/features/Billing/BillingPanels/PaymentInfoPanel/AddPaymentMethodDrawer/AddCreditCardForm.tsx index 77a56bccdff..4bb0db5c3e6 100644 --- a/packages/manager/src/features/Billing/BillingPanels/PaymentInfoPanel/AddPaymentMethodDrawer/AddCreditCardForm.tsx +++ b/packages/manager/src/features/Billing/BillingPanels/PaymentInfoPanel/AddPaymentMethodDrawer/AddCreditCardForm.tsx @@ -5,7 +5,7 @@ import { Theme } from '@mui/material/styles'; import Grid from '@mui/material/Unstable_Grid2'; import { TextField } from 'src/components/TextField'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { addPaymentMethod } from '@linode/api-v4/lib'; import { useSnackbar } from 'notistack'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Billing/InvoiceDetail/InvoiceDetail.tsx b/packages/manager/src/features/Billing/InvoiceDetail/InvoiceDetail.tsx index b722b556c81..c5b2bb42ed1 100644 --- a/packages/manager/src/features/Billing/InvoiceDetail/InvoiceDetail.tsx +++ b/packages/manager/src/features/Billing/InvoiceDetail/InvoiceDetail.tsx @@ -10,7 +10,7 @@ import KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft'; import * as React from 'react'; import { DownloadCSV } from 'src/components/DownloadCSV/DownloadCSV'; import { useParams } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Paper from 'src/components/core/Paper'; import { useTheme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/CancelLanding/CancelLanding.tsx b/packages/manager/src/features/CancelLanding/CancelLanding.tsx index ff315e2e061..caaecda85c9 100644 --- a/packages/manager/src/features/CancelLanding/CancelLanding.tsx +++ b/packages/manager/src/features/CancelLanding/CancelLanding.tsx @@ -5,7 +5,7 @@ import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; import AkamaiLogo from 'src/assets/logo/akamai-logo.svg'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { H1Header } from 'src/components/H1Header/H1Header'; diff --git a/packages/manager/src/features/Databases/DatabaseCreate/DatabaseCreate.tsx b/packages/manager/src/features/Databases/DatabaseCreate/DatabaseCreate.tsx index 64e00a6ba5b..a0e92f1eebe 100644 --- a/packages/manager/src/features/Databases/DatabaseCreate/DatabaseCreate.tsx +++ b/packages/manager/src/features/Databases/DatabaseCreate/DatabaseCreate.tsx @@ -18,7 +18,7 @@ import MongoDBIcon from 'src/assets/icons/mongodb.svg'; import MySQLIcon from 'src/assets/icons/mysql.svg'; import PostgreSQLIcon from 'src/assets/icons/postgresql.svg'; import { BetaChip } from 'src/components/BetaChip/BetaChip'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import Divider from 'src/components/core/Divider'; import FormControl from 'src/components/core/FormControl'; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/AccessControls.tsx b/packages/manager/src/features/Databases/DatabaseDetail/AccessControls.tsx index ead87ca6bda..d7e446d9fa2 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/AccessControls.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/AccessControls.tsx @@ -4,7 +4,7 @@ import { Theme } from '@mui/material/styles'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; import AddNewLink from 'src/components/AddNewLink'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { TableBody } from 'src/components/TableBody'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/AddAccessControlDrawer.tsx b/packages/manager/src/features/Databases/DatabaseDetail/AddAccessControlDrawer.tsx index 9563aac1963..8508635c6d5 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/AddAccessControlDrawer.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/AddAccessControlDrawer.tsx @@ -3,7 +3,7 @@ import { Theme } from '@mui/material/styles'; import { useFormik } from 'formik'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import Drawer from 'src/components/Drawer'; import { MultipleIPInput } from 'src/components/MultipleIPInput/MultipleIPInput'; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseBackups/RestoreFromBackupDialog.tsx b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseBackups/RestoreFromBackupDialog.tsx index 90e7372e0c5..71b92a76d5a 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseBackups/RestoreFromBackupDialog.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseBackups/RestoreFromBackupDialog.tsx @@ -3,7 +3,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import { useHistory } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { DialogProps } from 'src/components/Dialog/Dialog'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsDeleteClusterDialog.tsx b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsDeleteClusterDialog.tsx index eb2f746dd0e..28c4b4f9968 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsDeleteClusterDialog.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsDeleteClusterDialog.tsx @@ -3,7 +3,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import { useHistory } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsMenuItem.tsx b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsMenuItem.tsx index 80e1d43bf91..9d83187ecc4 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsMenuItem.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsMenuItem.tsx @@ -1,6 +1,6 @@ import { Theme } from '@mui/material/styles'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { makeStyles } from 'tss-react/mui'; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsResetPasswordDialog.tsx b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsResetPasswordDialog.tsx index 25f932627b2..670901d1af3 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsResetPasswordDialog.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/DatabaseSettingsResetPasswordDialog.tsx @@ -1,7 +1,7 @@ import { Engine } from '@linode/api-v4/lib/databases'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/MaintenanceWindow.tsx b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/MaintenanceWindow.tsx index ef38964aea1..152eb338fed 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/MaintenanceWindow.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSettings/MaintenanceWindow.tsx @@ -6,7 +6,7 @@ import { DateTime } from 'luxon'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import { Link } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormControl from 'src/components/core/FormControl'; import FormControlLabel from 'src/components/core/FormControlLabel'; import RadioGroup from 'src/components/core/RadioGroup'; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx index 533058e1a96..fdd26f21578 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx @@ -4,7 +4,7 @@ import { Theme } from '@mui/material/styles'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import DownloadIcon from 'src/assets/icons/lke-download.svg'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip'; import Box from 'src/components/core/Box'; diff --git a/packages/manager/src/features/Domains/CloneDomainDrawer.tsx b/packages/manager/src/features/Domains/CloneDomainDrawer.tsx index f2c4b5da342..5b82d4fc0bd 100644 --- a/packages/manager/src/features/Domains/CloneDomainDrawer.tsx +++ b/packages/manager/src/features/Domains/CloneDomainDrawer.tsx @@ -5,7 +5,7 @@ import FormControlLabel from 'src/components/core/FormControlLabel'; import { TextField } from 'src/components/TextField'; import { Radio } from 'src/components/Radio/Radio'; import ActionsPanel from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import { useCloneDomainMutation } from 'src/queries/domains'; import { useFormik } from 'formik'; import { Domain } from '@linode/api-v4'; diff --git a/packages/manager/src/features/Domains/CreateDomain/CreateDomain.tsx b/packages/manager/src/features/Domains/CreateDomain/CreateDomain.tsx index 150bb55e195..19c66f9330f 100644 --- a/packages/manager/src/features/Domains/CreateDomain/CreateDomain.tsx +++ b/packages/manager/src/features/Domains/CreateDomain/CreateDomain.tsx @@ -15,7 +15,7 @@ import { path } from 'ramda'; import * as React from 'react'; import { useHistory } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { DocumentTitleSegment } from 'src/components/DocumentTitle'; import Select, { Item } from 'src/components/EnhancedSelect/Select'; import LandingHeader from 'src/components/LandingHeader'; diff --git a/packages/manager/src/features/Domains/DeleteDomain.tsx b/packages/manager/src/features/Domains/DeleteDomain.tsx index 30b71fe4c3c..87d5b130a5a 100644 --- a/packages/manager/src/features/Domains/DeleteDomain.tsx +++ b/packages/manager/src/features/Domains/DeleteDomain.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { DeletionDialog } from 'src/components/DeletionDialog/DeletionDialog'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Domains/DisableDomainDialog.tsx b/packages/manager/src/features/Domains/DisableDomainDialog.tsx index 067bfab6d92..f3417118238 100644 --- a/packages/manager/src/features/Domains/DisableDomainDialog.tsx +++ b/packages/manager/src/features/Domains/DisableDomainDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { Domain } from '@linode/api-v4/lib/domains'; import { useUpdateDomainMutation } from 'src/queries/domains'; diff --git a/packages/manager/src/features/Domains/DomainRecordDrawer.tsx b/packages/manager/src/features/Domains/DomainRecordDrawer.tsx index 272288fef89..36603c24927 100644 --- a/packages/manager/src/features/Domains/DomainRecordDrawer.tsx +++ b/packages/manager/src/features/Domains/DomainRecordDrawer.tsx @@ -21,7 +21,7 @@ import { } from 'ramda'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button, { ButtonProps } from 'src/components/Button'; +import { Button, ButtonProps } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import Select, { Item } from 'src/components/EnhancedSelect/Select'; import { MultipleIPInput } from 'src/components/MultipleIPInput/MultipleIPInput'; diff --git a/packages/manager/src/features/Domains/DomainRecords.tsx b/packages/manager/src/features/Domains/DomainRecords.tsx index c68418e0d09..a10b9406598 100644 --- a/packages/manager/src/features/Domains/DomainRecords.tsx +++ b/packages/manager/src/features/Domains/DomainRecords.tsx @@ -23,7 +23,7 @@ import * as React from 'react'; import { compose as recompose } from 'recompose'; import { Subscription } from 'rxjs/Subscription'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { createStyles, withStyles, WithStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Domains/DomainZoneImportDrawer.tsx b/packages/manager/src/features/Domains/DomainZoneImportDrawer.tsx index 1d005e712a9..beb0579df18 100644 --- a/packages/manager/src/features/Domains/DomainZoneImportDrawer.tsx +++ b/packages/manager/src/features/Domains/DomainZoneImportDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; import { TextField } from 'src/components/TextField'; diff --git a/packages/manager/src/features/Domains/DomainsLanding.tsx b/packages/manager/src/features/Domains/DomainsLanding.tsx index 748baef3e6c..df6b78816c3 100644 --- a/packages/manager/src/features/Domains/DomainsLanding.tsx +++ b/packages/manager/src/features/Domains/DomainsLanding.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { Domain } from '@linode/api-v4/lib/domains'; import { useSnackbar } from 'notistack'; import { useHistory, useLocation } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Domains/DownloadDNSZoneFileButton.tsx b/packages/manager/src/features/Domains/DownloadDNSZoneFileButton.tsx index 725bbc5ec98..57f4f7e55ba 100644 --- a/packages/manager/src/features/Domains/DownloadDNSZoneFileButton.tsx +++ b/packages/manager/src/features/Domains/DownloadDNSZoneFileButton.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { downloadFile } from 'src/utilities/downloadFile'; import { getDNSZoneFile } from '@linode/api-v4/lib/domains'; diff --git a/packages/manager/src/features/Domains/EditDomainDrawer.tsx b/packages/manager/src/features/Domains/EditDomainDrawer.tsx index 07c661ae099..d6216a16d1c 100644 --- a/packages/manager/src/features/Domains/EditDomainDrawer.tsx +++ b/packages/manager/src/features/Domains/EditDomainDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormControlLabel from 'src/components/core/FormControlLabel'; import RadioGroup from 'src/components/core/RadioGroup'; import Drawer from 'src/components/Drawer'; diff --git a/packages/manager/src/features/EntityTransfers/EntityTransfersCreate/TransferCheckoutBar.tsx b/packages/manager/src/features/EntityTransfers/EntityTransfersCreate/TransferCheckoutBar.tsx index aa35e8e85f2..022ffd47e8d 100644 --- a/packages/manager/src/features/EntityTransfers/EntityTransfersCreate/TransferCheckoutBar.tsx +++ b/packages/manager/src/features/EntityTransfers/EntityTransfersCreate/TransferCheckoutBar.tsx @@ -1,7 +1,7 @@ import { CreateTransferPayload } from '@linode/api-v4/lib/entity-transfers'; import Close from '@mui/icons-material/Close'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/ConfirmTransferCancelDialog.tsx b/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/ConfirmTransferCancelDialog.tsx index ca84bc5681f..c323e325ef6 100644 --- a/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/ConfirmTransferCancelDialog.tsx +++ b/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/ConfirmTransferCancelDialog.tsx @@ -6,7 +6,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { makeStyles } from '@mui/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/ConfirmTransferDialog.tsx b/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/ConfirmTransferDialog.tsx index 885e96998c7..b4ddc796ba5 100644 --- a/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/ConfirmTransferDialog.tsx +++ b/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/ConfirmTransferDialog.tsx @@ -6,7 +6,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import { CircleProgress } from 'src/components/CircleProgress'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; diff --git a/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/CreateTransferSuccessDialog.tsx b/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/CreateTransferSuccessDialog.tsx index a53199b83e4..6f18cf6712e 100644 --- a/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/CreateTransferSuccessDialog.tsx +++ b/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/CreateTransferSuccessDialog.tsx @@ -3,7 +3,7 @@ import copy from 'copy-to-clipboard'; import { DateTime } from 'luxon'; import { update } from 'ramda'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CopyableTextField } from 'src/components/CopyableTextField/CopyableTextField'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/TransferControls.tsx b/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/TransferControls.tsx index e67e3fbc1ef..8bd6ade7665 100644 --- a/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/TransferControls.tsx +++ b/packages/manager/src/features/EntityTransfers/EntityTransfersLanding/TransferControls.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { useHistory } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Hidden from 'src/components/core/Hidden'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Firewalls/FirewallDetail/Devices/AddDeviceDrawer.tsx b/packages/manager/src/features/Firewalls/FirewallDetail/Devices/AddDeviceDrawer.tsx index 766b8ba266f..1ecec4269f6 100644 --- a/packages/manager/src/features/Firewalls/FirewallDetail/Devices/AddDeviceDrawer.tsx +++ b/packages/manager/src/features/Firewalls/FirewallDetail/Devices/AddDeviceDrawer.tsx @@ -2,7 +2,7 @@ import { useTheme } from '@mui/material/styles'; import * as React from 'react'; import { useParams } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import Link from 'src/components/Link'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Firewalls/FirewallDetail/Devices/FirewallLinodesLanding.tsx b/packages/manager/src/features/Firewalls/FirewallDetail/Devices/FirewallLinodesLanding.tsx index 75dbb0ab82d..3f4f6203f95 100644 --- a/packages/manager/src/features/Firewalls/FirewallDetail/Devices/FirewallLinodesLanding.tsx +++ b/packages/manager/src/features/Firewalls/FirewallDetail/Devices/FirewallLinodesLanding.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Firewalls/FirewallDetail/Devices/RemoveDeviceDialog.tsx b/packages/manager/src/features/Firewalls/FirewallDetail/Devices/RemoveDeviceDialog.tsx index fb49b79aed4..49a6f3d5283 100644 --- a/packages/manager/src/features/Firewalls/FirewallDetail/Devices/RemoveDeviceDialog.tsx +++ b/packages/manager/src/features/Firewalls/FirewallDetail/Devices/RemoveDeviceDialog.tsx @@ -1,7 +1,7 @@ import { FirewallDevice } from '@linode/api-v4'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { useRemoveFirewallDeviceMutation } from 'src/queries/firewalls'; diff --git a/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRuleForm.tsx b/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRuleForm.tsx index 6cb78cd6ac5..cdaa58fe514 100644 --- a/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRuleForm.tsx +++ b/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRuleForm.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormControlLabel from 'src/components/core/FormControlLabel'; import { MultipleIPInput } from 'src/components/MultipleIPInput/MultipleIPInput'; import { Radio } from 'src/components/Radio/Radio'; diff --git a/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRuleTable.tsx b/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRuleTable.tsx index 65b4a669d26..b3798ba298e 100644 --- a/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRuleTable.tsx +++ b/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRuleTable.tsx @@ -10,7 +10,7 @@ import { } from 'react-beautiful-dnd'; import DragIndicator from 'src/assets/icons/drag-indicator.svg'; import Undo from 'src/assets/icons/undo.svg'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Box from '@mui/material/Box'; import Hidden from 'src/components/core/Hidden'; import { makeStyles, useTheme } from '@mui/styles'; diff --git a/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRulesLanding.tsx b/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRulesLanding.tsx index c8b46a6d7ff..5127f356f59 100644 --- a/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRulesLanding.tsx +++ b/packages/manager/src/features/Firewalls/FirewallDetail/Rules/FirewallRulesLanding.tsx @@ -8,7 +8,7 @@ import { Theme } from '@mui/material/styles'; import { makeStyles } from '@mui/styles'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { Notice } from 'src/components/Notice/Notice'; import { Prompt } from 'src/components/Prompt/Prompt'; diff --git a/packages/manager/src/features/Firewalls/FirewallLanding/CreateFirewallDrawer.tsx b/packages/manager/src/features/Firewalls/FirewallLanding/CreateFirewallDrawer.tsx index 9cf20f46a0c..f9e80e73d54 100644 --- a/packages/manager/src/features/Firewalls/FirewallLanding/CreateFirewallDrawer.tsx +++ b/packages/manager/src/features/Firewalls/FirewallLanding/CreateFirewallDrawer.tsx @@ -3,7 +3,7 @@ import { CreateFirewallSchema } from '@linode/validation/lib/firewalls.schema'; import { useFormik } from 'formik'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; import { TextField } from 'src/components/TextField'; diff --git a/packages/manager/src/features/Firewalls/FirewallLanding/FirewallDialog.tsx b/packages/manager/src/features/Firewalls/FirewallLanding/FirewallDialog.tsx index 99416e1a531..9bdb7772b07 100644 --- a/packages/manager/src/features/Firewalls/FirewallLanding/FirewallDialog.tsx +++ b/packages/manager/src/features/Firewalls/FirewallLanding/FirewallDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { useDeleteFirewall, useMutateFirewall } from 'src/queries/firewalls'; import { capitalize } from 'src/utilities/capitalize'; diff --git a/packages/manager/src/features/GlobalNotifications/ComplianceBanner.tsx b/packages/manager/src/features/GlobalNotifications/ComplianceBanner.tsx index 0a50a12d09a..fdae576fe7c 100644 --- a/packages/manager/src/features/GlobalNotifications/ComplianceBanner.tsx +++ b/packages/manager/src/features/GlobalNotifications/ComplianceBanner.tsx @@ -1,6 +1,6 @@ import { styled } from '@mui/system'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import DismissibleBanner from 'src/components/DismissibleBanner'; import Box from 'src/components/core/Box'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/GlobalNotifications/ComplianceUpdateModal.tsx b/packages/manager/src/features/GlobalNotifications/ComplianceUpdateModal.tsx index 7172496194f..6a60374e436 100644 --- a/packages/manager/src/features/GlobalNotifications/ComplianceUpdateModal.tsx +++ b/packages/manager/src/features/GlobalNotifications/ComplianceUpdateModal.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { SupportLink } from 'src/components/SupportLink'; diff --git a/packages/manager/src/features/GlobalNotifications/EmailBounce.tsx b/packages/manager/src/features/GlobalNotifications/EmailBounce.tsx index 4084055e3dc..c7e93fe2372 100644 --- a/packages/manager/src/features/GlobalNotifications/EmailBounce.tsx +++ b/packages/manager/src/features/GlobalNotifications/EmailBounce.tsx @@ -1,7 +1,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import { useHistory } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles, useTheme } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import useMediaQuery from '@mui/material/useMediaQuery'; diff --git a/packages/manager/src/features/GlobalNotifications/TaxCollectionBanner.tsx b/packages/manager/src/features/GlobalNotifications/TaxCollectionBanner.tsx index d7443f4c560..b378020f402 100644 --- a/packages/manager/src/features/GlobalNotifications/TaxCollectionBanner.tsx +++ b/packages/manager/src/features/GlobalNotifications/TaxCollectionBanner.tsx @@ -3,7 +3,7 @@ import { makeStyles } from '@mui/styles'; import { DateTime } from 'luxon'; import * as React from 'react'; import { useHistory } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import DismissibleBanner from 'src/components/DismissibleBanner'; import Link from 'src/components/Link'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Images/ImageUpload.tsx b/packages/manager/src/features/Images/ImageUpload.tsx index d9362921df2..dd3372981e6 100644 --- a/packages/manager/src/features/Images/ImageUpload.tsx +++ b/packages/manager/src/features/Images/ImageUpload.tsx @@ -5,7 +5,7 @@ import * as React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useHistory } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { RegionSelect } from 'src/components/EnhancedSelect/variants/RegionSelect'; diff --git a/packages/manager/src/features/Images/ImagesCreate/CreateImageTab.tsx b/packages/manager/src/features/Images/ImagesCreate/CreateImageTab.tsx index 7b9b6a7ad26..cc33314a23f 100644 --- a/packages/manager/src/features/Images/ImagesCreate/CreateImageTab.tsx +++ b/packages/manager/src/features/Images/ImagesCreate/CreateImageTab.tsx @@ -6,7 +6,7 @@ import { useSnackbar } from 'notistack'; import { equals } from 'ramda'; import * as React from 'react'; import { useHistory } from 'react-router-dom'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import Box from 'src/components/core/Box'; import Paper from 'src/components/core/Paper'; diff --git a/packages/manager/src/features/Images/ImagesDrawer.tsx b/packages/manager/src/features/Images/ImagesDrawer.tsx index 66ee69d82ad..97848f63f5c 100644 --- a/packages/manager/src/features/Images/ImagesDrawer.tsx +++ b/packages/manager/src/features/Images/ImagesDrawer.tsx @@ -6,7 +6,7 @@ import * as React from 'react'; import { useHistory } from 'react-router-dom'; import { compose } from 'recompose'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Images/ImagesLanding.tsx b/packages/manager/src/features/Images/ImagesLanding.tsx index 15144b98d0f..05e458a4924 100644 --- a/packages/manager/src/features/Images/ImagesLanding.tsx +++ b/packages/manager/src/features/Images/ImagesLanding.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ErrorState } from 'src/components/ErrorState/ErrorState'; import Hidden from 'src/components/core/Hidden'; import imageEvents from 'src/store/selectors/imageEvents'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/DeleteKubernetesClusterDialog.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/DeleteKubernetesClusterDialog.tsx index e96c49d09ba..1b9c70e6643 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/DeleteKubernetesClusterDialog.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/DeleteKubernetesClusterDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { TypeToConfirm } from 'src/components/TypeToConfirm/TypeToConfirm'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeConfigPanel.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeConfigPanel.tsx index fbf8b99659f..b995390f10d 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeConfigPanel.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeConfigPanel.tsx @@ -3,7 +3,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import Download from 'src/assets/icons/download.svg'; import View from 'src/assets/icons/view.svg'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Paper from 'src/components/core/Paper'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeSummaryPanel.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeSummaryPanel.tsx index cd30a2d8066..6c532299c8a 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeSummaryPanel.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeSummaryPanel.tsx @@ -3,7 +3,7 @@ import OpenInNewIcon from '@mui/icons-material/OpenInNew'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { Chip } from 'src/components/core/Chip'; import Paper from 'src/components/core/Paper'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/AddNodePoolDrawer.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/AddNodePoolDrawer.tsx index e70112a0753..fa48cc492ae 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/AddNodePoolDrawer.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/AddNodePoolDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Box from 'src/components/core/Box'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/AutoscalePoolDialog.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/AutoscalePoolDialog.tsx index 781138bb98f..caa6583090c 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/AutoscalePoolDialog.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/AutoscalePoolDialog.tsx @@ -7,7 +7,7 @@ import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Grid from '@mui/material/Unstable_Grid2'; import Link from 'src/components/Link'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/DeleteNodePoolDialog.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/DeleteNodePoolDialog.tsx index c1bfce3c07d..e98a4c4d13a 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/DeleteNodePoolDialog.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/DeleteNodePoolDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { pluralize } from 'src/utilities/pluralize'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/NodePool.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/NodePool.tsx index 57393fad749..93b747c7482 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/NodePool.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/NodePool.tsx @@ -5,7 +5,7 @@ import { import * as React from 'react'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import Grid from '@mui/material/Unstable_Grid2'; import NodeTable from './NodeTable'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/NodePoolsDisplay.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/NodePoolsDisplay.tsx index ff3fdca88d6..51f2df0383c 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/NodePoolsDisplay.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/NodePoolsDisplay.tsx @@ -13,7 +13,7 @@ import { RecycleNodeDialog } from './RecycleNodeDialog'; import NodePool from './NodePool'; import { DeleteNodePoolDialog } from './DeleteNodePoolDialog'; import { AutoscalePoolDialog } from './AutoscalePoolDialog'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { useAllKubernetesNodePoolQuery } from 'src/queries/kubernetes'; import { CircleProgress } from 'src/components/CircleProgress'; import { RecycleClusterDialog } from '../RecycleClusterDialog'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/RecycleNodeDialog.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/RecycleNodeDialog.tsx index 8f93e9543a3..c84bf907648 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/RecycleNodeDialog.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/RecycleNodeDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { localStorageWarning } from 'src/features/Kubernetes/kubeUtils'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/ResizeNodePoolDrawer.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/ResizeNodePoolDrawer.tsx index c5dbdd7dc46..07439da0d71 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/ResizeNodePoolDrawer.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/NodePoolsDisplay/ResizeNodePoolDrawer.tsx @@ -1,7 +1,7 @@ import { KubeNodePoolResponse } from '@linode/api-v4'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/RecycleClusterDialog.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/RecycleClusterDialog.tsx index 5a53a6e887b..e774c6590e1 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/RecycleClusterDialog.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/RecycleClusterDialog.tsx @@ -1,7 +1,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/RecycleNodePoolDialog.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/RecycleNodePoolDialog.tsx index 77c0698a4ee..ad5881bebe2 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/RecycleNodePoolDialog.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/RecycleNodePoolDialog.tsx @@ -1,7 +1,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/UpgradeClusterDialog.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/UpgradeClusterDialog.tsx index b21e01b8fe9..9e0b1a1b0b5 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/UpgradeClusterDialog.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/UpgradeClusterDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/UpgradeKubernetesVersionBanner.tsx b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/UpgradeKubernetesVersionBanner.tsx index b40e1467d06..b4114167123 100644 --- a/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/UpgradeKubernetesVersionBanner.tsx +++ b/packages/manager/src/features/Kubernetes/KubernetesClusterDetail/UpgradeKubernetesVersionBanner.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import DismissibleBanner from 'src/components/DismissibleBanner'; import Grid from '@mui/material/Unstable_Grid2'; diff --git a/packages/manager/src/features/Kubernetes/UpgradeVersionModal.tsx b/packages/manager/src/features/Kubernetes/UpgradeVersionModal.tsx index 7c243afead1..2db131e453a 100644 --- a/packages/manager/src/features/Kubernetes/UpgradeVersionModal.tsx +++ b/packages/manager/src/features/Kubernetes/UpgradeVersionModal.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { recycleClusterNodes } from '@linode/api-v4/lib/kubernetes'; diff --git a/packages/manager/src/features/LinodeConfigSelectionDrawer/LinodeConfigSelectionDrawer.tsx b/packages/manager/src/features/LinodeConfigSelectionDrawer/LinodeConfigSelectionDrawer.tsx index aa003f66e28..f2c62bea692 100644 --- a/packages/manager/src/features/LinodeConfigSelectionDrawer/LinodeConfigSelectionDrawer.tsx +++ b/packages/manager/src/features/LinodeConfigSelectionDrawer/LinodeConfigSelectionDrawer.tsx @@ -2,7 +2,7 @@ import { Config } from '@linode/api-v4/lib/linodes'; import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import Grid from '@mui/material/Unstable_Grid2'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Linodes/CloneLanding/Details.tsx b/packages/manager/src/features/Linodes/CloneLanding/Details.tsx index 80be16f8cc3..5e454222483 100644 --- a/packages/manager/src/features/Linodes/CloneLanding/Details.tsx +++ b/packages/manager/src/features/Linodes/CloneLanding/Details.tsx @@ -1,7 +1,7 @@ import { Disk, Linode } from '@linode/api-v4/lib/linodes'; import Close from '@mui/icons-material/Close'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Divider from 'src/components/core/Divider'; import List from 'src/components/core/List'; import ListItem from 'src/components/core/ListItem'; diff --git a/packages/manager/src/features/Linodes/LinodeEntityDetail.tsx b/packages/manager/src/features/Linodes/LinodeEntityDetail.tsx index c50a986c25c..9e3cb544db9 100644 --- a/packages/manager/src/features/Linodes/LinodeEntityDetail.tsx +++ b/packages/manager/src/features/Linodes/LinodeEntityDetail.tsx @@ -9,7 +9,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import { Link } from 'react-router-dom'; import { HashLink } from 'react-router-hash-link'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip'; import EntityDetail from 'src/components/EntityDetail'; import { EntityHeader } from 'src/components/EntityHeader/EntityHeader'; diff --git a/packages/manager/src/features/Linodes/LinodesCreate/ApiAwarenessModal/index.tsx b/packages/manager/src/features/Linodes/LinodesCreate/ApiAwarenessModal/index.tsx index 41c3edeb963..dad8dd65f1b 100644 --- a/packages/manager/src/features/Linodes/LinodesCreate/ApiAwarenessModal/index.tsx +++ b/packages/manager/src/features/Linodes/LinodesCreate/ApiAwarenessModal/index.tsx @@ -2,7 +2,7 @@ import React, { useMemo, useEffect } from 'react'; import { useHistory } from 'react-router-dom'; import { CreateLinodeRequest } from '@linode/api-v4/lib/linodes'; import { StyledActionPanel } from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Dialog } from 'src/components/Dialog/Dialog'; import ExternalLink from 'src/components/ExternalLink'; import { SafeTabPanel } from 'src/components/SafeTabPanel/SafeTabPanel'; diff --git a/packages/manager/src/features/Linodes/LinodesCreate/LinodeCreate.tsx b/packages/manager/src/features/Linodes/LinodesCreate/LinodeCreate.tsx index e7e2a54adc4..38037fa4628 100644 --- a/packages/manager/src/features/Linodes/LinodesCreate/LinodeCreate.tsx +++ b/packages/manager/src/features/Linodes/LinodesCreate/LinodeCreate.tsx @@ -9,7 +9,7 @@ import { connect, MapDispatchToProps } from 'react-redux'; import { RouteComponentProps } from 'react-router-dom'; import { compose as recompose } from 'recompose'; import AccessPanel from 'src/components/AccessPanel/AccessPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CheckoutSummary } from 'src/components/CheckoutSummary/CheckoutSummary'; import { CircleProgress } from 'src/components/CircleProgress'; import Box from 'src/components/core/Box'; diff --git a/packages/manager/src/features/Linodes/LinodesCreate/SelectPlanPanel/KubernetesPlanSelection.tsx b/packages/manager/src/features/Linodes/LinodesCreate/SelectPlanPanel/KubernetesPlanSelection.tsx index b35656ed426..2713c90cce3 100644 --- a/packages/manager/src/features/Linodes/LinodesCreate/SelectPlanPanel/KubernetesPlanSelection.tsx +++ b/packages/manager/src/features/Linodes/LinodesCreate/SelectPlanPanel/KubernetesPlanSelection.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import Grid from '@mui/material/Unstable_Grid2'; import { styled } from '@mui/material/styles'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { EnhancedNumberInput } from 'src/components/EnhancedNumberInput/EnhancedNumberInput'; import Hidden from 'src/components/core/Hidden'; import SelectionCard from 'src/components/SelectionCard'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CancelBackupsDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CancelBackupsDialog.tsx index 040ab42ef80..4ae09abfce9 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CancelBackupsDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CancelBackupsDialog.tsx @@ -6,7 +6,7 @@ import { sendBackupsDisabledEvent } from 'src/utilities/analytics'; import Typography from 'src/components/core/Typography'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import ActionsPanel from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; interface Props { isOpen: boolean; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CaptureSnapshot.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CaptureSnapshot.tsx index 95fb7c6ed67..03365858dc6 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CaptureSnapshot.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CaptureSnapshot.tsx @@ -10,7 +10,7 @@ import { useSnackbar } from 'notistack'; import { useFormik } from 'formik'; import { TextField } from 'src/components/TextField'; import { CaptureSnapshotConfirmationDialog } from './CaptureSnapshotConfirmationDialog'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { resetEventsPolling } from 'src/eventsPolling'; import { getErrorMap } from 'src/utilities/errorUtils'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CaptureSnapshotConfirmationDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CaptureSnapshotConfirmationDialog.tsx index c270968a7f5..eef951922eb 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CaptureSnapshotConfirmationDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/CaptureSnapshotConfirmationDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/EnableBackupsDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/EnableBackupsDialog.tsx index 6bb0dc3f661..827fda6176a 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/EnableBackupsDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/EnableBackupsDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { Currency } from 'src/components/Currency'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/LinodeBackups.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/LinodeBackups.tsx index a3b95c1c260..33bb7416467 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/LinodeBackups.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/LinodeBackups.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { Table } from 'src/components/Table'; import { TableRowEmpty } from 'src/components/TableRowEmpty/TableRowEmpty'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Paper from 'src/components/core/Paper'; import { TableBody } from 'src/components/TableBody'; import { TableHead } from 'src/components/TableHead'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/RestoreToLinodeDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/RestoreToLinodeDrawer.tsx index 7b530d525d1..201fb427a09 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/RestoreToLinodeDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/RestoreToLinodeDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import FormControl from 'src/components/core/FormControl'; import FormControlLabel from 'src/components/core/FormControlLabel'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/ScheduleSettings.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/ScheduleSettings.tsx index 34e0ac05831..3da2c23368a 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/ScheduleSettings.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/ScheduleSettings.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import Select from 'src/components/EnhancedSelect/Select'; import { Notice } from 'src/components/Notice/Notice'; import FormControl from 'src/components/core/FormControl'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/BootConfigDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/BootConfigDialog.tsx index 763208cc574..96d9594dd84 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/BootConfigDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/BootConfigDialog.tsx @@ -1,7 +1,7 @@ import React from 'react'; import Typography from 'src/components/core/Typography'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Config } from '@linode/api-v4'; import { useSnackbar } from 'notistack'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/DeleteConfigDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/DeleteConfigDialog.tsx index 8ec791ce4d3..0a804e18597 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/DeleteConfigDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/DeleteConfigDialog.tsx @@ -1,7 +1,7 @@ import React from 'react'; import Typography from 'src/components/core/Typography'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Config } from '@linode/api-v4'; import { useSnackbar } from 'notistack'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/LinodeConfigDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/LinodeConfigDialog.tsx index e71693dddad..5e15f3fd6e7 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/LinodeConfigDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeConfigs/LinodeConfigDialog.tsx @@ -8,7 +8,7 @@ import { useFormik } from 'formik'; import { equals, pathOr, repeat } from 'ramda'; import * as React from 'react'; import { StyledActionPanel } from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import Box from 'src/components/core/Box'; import Divider from 'src/components/core/Divider'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/AddIPDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/AddIPDrawer.tsx index 9b37a12f392..741a5e2396c 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/AddIPDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/AddIPDrawer.tsx @@ -2,7 +2,7 @@ import { IPv6Prefix } from '@linode/api-v4/lib/networking'; import * as React from 'react'; import { Link } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormControlLabel from 'src/components/core/FormControlLabel'; import { Radio } from 'src/components/Radio/Radio'; import RadioGroup from 'src/components/core/RadioGroup'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/DeleteIPDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/DeleteIPDialog.tsx index d3e5960a6e0..425ba5d8eed 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/DeleteIPDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/DeleteIPDialog.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { useSnackbar } from 'notistack'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { useLinodeIPDeleteMutation } from 'src/queries/linodes/networking'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/DeleteRangeDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/DeleteRangeDialog.tsx index bc36a4781e0..e5c5a913e0e 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/DeleteRangeDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/DeleteRangeDialog.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { useSnackbar } from 'notistack'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { useLinodeRemoveRangeMutation } from 'src/queries/linodes/networking'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditIPRDNSDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditIPRDNSDrawer.tsx index 1eae2da143b..a4dc3495489 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditIPRDNSDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditIPRDNSDrawer.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { IPAddress } from '@linode/api-v4/lib/networking'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import Drawer from 'src/components/Drawer'; import { TextField } from 'src/components/TextField'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditRangeRDNSDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditRangeRDNSDrawer.tsx index 6168164005d..a650ab62a0c 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditRangeRDNSDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditRangeRDNSDrawer.tsx @@ -1,7 +1,7 @@ import { IPRange } from '@linode/api-v4/lib/networking'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/IPSharing.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/IPSharing.tsx index 7d894b0b82a..a2caa715e1a 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/IPSharing.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/IPSharing.tsx @@ -4,7 +4,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import { remove, uniq, update } from 'ramda'; import * as React from 'react'; import { StyledActionPanel } from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Link from 'src/components/Link'; import { CircleProgress } from 'src/components/CircleProgress'; import Divider from 'src/components/core/Divider'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/IPTransfer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/IPTransfer.tsx index c51d712971b..0a4ca22ebf8 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/IPTransfer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/IPTransfer.tsx @@ -14,7 +14,7 @@ import { } from 'ramda'; import * as React from 'react'; import { StyledActionPanel } from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import Divider from 'src/components/core/Divider'; import { makeStyles } from 'tss-react/mui'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/LinodeNetworking.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/LinodeNetworking.tsx index c11c9b86e1d..b8d35c63e1c 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/LinodeNetworking.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/LinodeNetworking.tsx @@ -3,7 +3,7 @@ import { IPAddress, IPRange } from '@linode/api-v4/lib/networking'; import { IPv6, parse as parseIP } from 'ipaddr.js'; import * as React from 'react'; import AddNewLink from 'src/components/AddNewLink'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip'; import Hidden from 'src/components/core/Hidden'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/ViewIPDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/ViewIPDrawer.tsx index fdd79764c2c..f46ebd28dcc 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/ViewIPDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/ViewIPDrawer.tsx @@ -1,7 +1,7 @@ import { IPAddress } from '@linode/api-v4/lib/networking'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/ViewRangeDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/ViewRangeDrawer.tsx index db6b70d6828..3eb6e9f179a 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/ViewRangeDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/ViewRangeDrawer.tsx @@ -1,7 +1,7 @@ import { IPRange } from '@linode/api-v4/lib/networking'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeRebuild/RebuildFromImage.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeRebuild/RebuildFromImage.tsx index f4f4f08e270..63bd90a0843 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeRebuild/RebuildFromImage.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeRebuild/RebuildFromImage.tsx @@ -12,7 +12,7 @@ import { isEmpty } from 'ramda'; import * as React from 'react'; import AccessPanel from 'src/components/AccessPanel/AccessPanel'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import Box from 'src/components/core/Box'; import Divider from 'src/components/core/Divider'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeRebuild/RebuildFromStackScript.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeRebuild/RebuildFromStackScript.tsx index 61fb9c2dc65..929c8b42fbe 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeRebuild/RebuildFromStackScript.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeRebuild/RebuildFromStackScript.tsx @@ -8,7 +8,7 @@ import { isEmpty } from 'ramda'; import * as React from 'react'; import AccessPanel from 'src/components/AccessPanel/AccessPanel'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import Grid from '@mui/material/Unstable_Grid2'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeRescue/BareMetalRescue.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeRescue/BareMetalRescue.tsx index c1ee5a082f8..30e6d78df3e 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeRescue/BareMetalRescue.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeRescue/BareMetalRescue.tsx @@ -2,7 +2,7 @@ import { rescueMetalLinode } from '@linode/api-v4/lib/linodes/actions'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { resetEventsPolling } from 'src/eventsPolling'; import { getAPIErrorOrDefault } from 'src/utilities/errorUtils'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeRescue/StandardRescueDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeRescue/StandardRescueDialog.tsx index 539472fa157..827a5fcf6a2 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeRescue/StandardRescueDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeRescue/StandardRescueDialog.tsx @@ -4,7 +4,7 @@ import { useSnackbar } from 'notistack'; import { assoc, clamp, equals, pathOr } from 'ramda'; import * as React from 'react'; import { StyledActionPanel } from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Paper from 'src/components/core/Paper'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeResize/LinodeResize.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeResize/LinodeResize.tsx index cc1ad307809..bf57149f3cc 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeResize/LinodeResize.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeResize/LinodeResize.tsx @@ -2,7 +2,7 @@ import { Disk, LinodeType } from '@linode/api-v4/lib/linodes'; import { APIError } from '@linode/api-v4/lib/types'; import { useSnackbar } from 'notistack'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Checkbox from 'src/components/CheckBox'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeResize/ResizeConfirmationDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeResize/ResizeConfirmationDialog.tsx index 0c685f8a3ce..80c18fbb44d 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeResize/ResizeConfirmationDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeResize/ResizeConfirmationDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsAlertsPanel.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsAlertsPanel.tsx index 3ccc129d332..cff69c0b774 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsAlertsPanel.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsAlertsPanel.tsx @@ -4,7 +4,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import Accordion from 'src/components/Accordion/Accordion'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Notice } from 'src/components/Notice/Notice'; import { useLinodeQuery, diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsDeletePanel.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsDeletePanel.tsx index 55279d1025c..16de7a138eb 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsDeletePanel.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsDeletePanel.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { useHistory } from 'react-router-dom'; import Accordion from 'src/components/Accordion'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { Notice } from 'src/components/Notice/Notice'; import { TypeToConfirmDialog } from 'src/components/TypeToConfirmDialog/TypeToConfirmDialog'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsLabelPanel.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsLabelPanel.tsx index 10522e6862a..ca23f43c437 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsLabelPanel.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsLabelPanel.tsx @@ -3,7 +3,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import Accordion from 'src/components/Accordion'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Notice } from 'src/components/Notice/Notice'; import { TextField } from 'src/components/TextField'; import { getErrorMap } from 'src/utilities/errorUtils'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsPasswordPanel.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsPasswordPanel.tsx index d0034af3840..180fc241f73 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsPasswordPanel.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeSettings/LinodeSettingsPasswordPanel.tsx @@ -2,7 +2,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import Accordion from 'src/components/Accordion'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import EnhancedSelect from 'src/components/EnhancedSelect/Select'; import { Notice } from 'src/components/Notice/Notice'; import SuspenseLoader from 'src/components/SuspenseLoader'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/CreateDiskDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/CreateDiskDrawer.tsx index 8baccf810b0..a51f6785477 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/CreateDiskDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/CreateDiskDrawer.tsx @@ -3,7 +3,7 @@ import { useFormik } from 'formik'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Item } from 'src/components/EnhancedSelect/Select'; import { ModeSelect, Mode } from 'src/components/ModeSelect/ModeSelect'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/CreateImageFromDiskDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/CreateImageFromDiskDialog.tsx index fa8f37d22fe..b5ac0b01b41 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/CreateImageFromDiskDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/CreateImageFromDiskDialog.tsx @@ -4,7 +4,7 @@ import { ConfirmationDialog } from 'src/components/ConfirmationDialog/Confirmati import { useCreateImageMutation } from 'src/queries/images'; import { useSnackbar } from 'notistack'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import { Typography } from '@mui/material'; import { SupportLink } from 'src/components/SupportLink/SupportLink'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/DeleteDiskDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/DeleteDiskDialog.tsx index 7987b6184d6..6617aa050d1 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/DeleteDiskDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/DeleteDiskDialog.tsx @@ -1,6 +1,6 @@ import React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { useLinodeDeleteDiskMutation } from 'src/queries/linodes/disks'; import type { Disk } from '@linode/api-v4'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/RenameDiskDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/RenameDiskDrawer.tsx index 2e2582cc524..20f946930a6 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/RenameDiskDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/RenameDiskDrawer.tsx @@ -2,7 +2,7 @@ import { Disk } from '@linode/api-v4/lib/linodes'; import { useFormik } from 'formik'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; import { TextField } from 'src/components/TextField'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/ResizeDiskDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/ResizeDiskDrawer.tsx index 9ecd71a31b7..55a237b53f7 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/ResizeDiskDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodeStorage/ResizeDiskDrawer.tsx @@ -2,7 +2,7 @@ import { Disk } from '@linode/api-v4/lib/linodes'; import { useFormik } from 'formik'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Code } from 'src/components/Code/Code'; import FormHelperText from 'src/components/core/FormHelperText'; import InputAdornment from 'src/components/core/InputAdornment'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailHeader/MigrationNotification.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailHeader/MigrationNotification.tsx index 5e00fffd13d..bc9effb480f 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailHeader/MigrationNotification.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailHeader/MigrationNotification.tsx @@ -4,7 +4,7 @@ import { DateTime } from 'luxon'; import { useSnackbar } from 'notistack'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailHeader/UpgradeVolumesDialog.tsx b/packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailHeader/UpgradeVolumesDialog.tsx index d739a085f35..16f8e93e8ef 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailHeader/UpgradeVolumesDialog.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/LinodesDetailHeader/UpgradeVolumesDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Paper from 'src/components/core/Paper'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Linodes/LinodesDetail/MutateDrawer/MutateDrawer.tsx b/packages/manager/src/features/Linodes/LinodesDetail/MutateDrawer/MutateDrawer.tsx index ef207b266e3..eb6483c611e 100644 --- a/packages/manager/src/features/Linodes/LinodesDetail/MutateDrawer/MutateDrawer.tsx +++ b/packages/manager/src/features/Linodes/LinodesDetail/MutateDrawer/MutateDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import ListItem from 'src/components/core/ListItem'; import Typography from 'src/components/core/Typography'; import Drawer from 'src/components/Drawer'; diff --git a/packages/manager/src/features/Linodes/MigrateLinode/MigrateLinode.tsx b/packages/manager/src/features/Linodes/MigrateLinode/MigrateLinode.tsx index 725197a8a83..c75d73752d2 100644 --- a/packages/manager/src/features/Linodes/MigrateLinode/MigrateLinode.tsx +++ b/packages/manager/src/features/Linodes/MigrateLinode/MigrateLinode.tsx @@ -3,7 +3,7 @@ import { Theme } from '@mui/material/styles'; import { makeStyles } from '@mui/styles'; import { useSnackbar } from 'notistack'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Dialog } from 'src/components/Dialog/Dialog'; import { Notice } from 'src/components/Notice/Notice'; import { TooltipIcon } from 'src/components/TooltipIcon/TooltipIcon'; diff --git a/packages/manager/src/features/Linodes/PowerActionsDialogOrDrawer.tsx b/packages/manager/src/features/Linodes/PowerActionsDialogOrDrawer.tsx index 5c4fa621206..bc2309e0b78 100644 --- a/packages/manager/src/features/Linodes/PowerActionsDialogOrDrawer.tsx +++ b/packages/manager/src/features/Linodes/PowerActionsDialogOrDrawer.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import Select from 'src/components/EnhancedSelect/Select'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import ExternalLink from 'src/components/ExternalLink'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Longview/LongviewLanding/LongviewClientHeader.tsx b/packages/manager/src/features/Longview/LongviewLanding/LongviewClientHeader.tsx index 1551a76ad0e..358c8b8a48a 100644 --- a/packages/manager/src/features/Longview/LongviewLanding/LongviewClientHeader.tsx +++ b/packages/manager/src/features/Longview/LongviewLanding/LongviewClientHeader.tsx @@ -2,7 +2,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import { pathOr } from 'ramda'; import * as React from 'react'; import { compose } from 'recompose'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Longview/LongviewLanding/LongviewDeleteDialog.tsx b/packages/manager/src/features/Longview/LongviewLanding/LongviewDeleteDialog.tsx index 85adf440a04..b86f4aa34ea 100644 --- a/packages/manager/src/features/Longview/LongviewLanding/LongviewDeleteDialog.tsx +++ b/packages/manager/src/features/Longview/LongviewLanding/LongviewDeleteDialog.tsx @@ -1,7 +1,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; interface Props { diff --git a/packages/manager/src/features/Longview/LongviewLanding/LongviewPlans.tsx b/packages/manager/src/features/Longview/LongviewLanding/LongviewPlans.tsx index 5923e5ca759..787be915670 100644 --- a/packages/manager/src/features/Longview/LongviewLanding/LongviewPlans.tsx +++ b/packages/manager/src/features/Longview/LongviewLanding/LongviewPlans.tsx @@ -6,7 +6,7 @@ import { import { APIError } from '@linode/api-v4/lib/types'; import classNames from 'classnames'; import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Chip } from 'src/components/core/Chip'; import CircularProgress from 'src/components/core/CircularProgress'; import Paper from 'src/components/core/Paper'; diff --git a/packages/manager/src/features/Longview/LongviewLanding/SubscriptionDialog.tsx b/packages/manager/src/features/Longview/LongviewLanding/SubscriptionDialog.tsx index 1a64e3bf5f0..7b46e8912e3 100644 --- a/packages/manager/src/features/Longview/LongviewLanding/SubscriptionDialog.tsx +++ b/packages/manager/src/features/Longview/LongviewLanding/SubscriptionDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { managedText } from './LongviewPlans'; diff --git a/packages/manager/src/features/Managed/Contacts/ContactsDrawer.tsx b/packages/manager/src/features/Managed/Contacts/ContactsDrawer.tsx index d1606e87829..c36f552efb6 100644 --- a/packages/manager/src/features/Managed/Contacts/ContactsDrawer.tsx +++ b/packages/manager/src/features/Managed/Contacts/ContactsDrawer.tsx @@ -4,7 +4,7 @@ import { Formik, FormikHelpers } from 'formik'; import { pathOr, pick } from 'ramda'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import Select from 'src/components/EnhancedSelect/Select'; import Grid from '@mui/material/Unstable_Grid2'; diff --git a/packages/manager/src/features/Managed/Credentials/AddCredentialDrawer.tsx b/packages/manager/src/features/Managed/Credentials/AddCredentialDrawer.tsx index 67900b0b16a..207f344e7c8 100644 --- a/packages/manager/src/features/Managed/Credentials/AddCredentialDrawer.tsx +++ b/packages/manager/src/features/Managed/Credentials/AddCredentialDrawer.tsx @@ -2,7 +2,7 @@ import { CredentialPayload } from '@linode/api-v4/lib/managed'; import { Formik } from 'formik'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; import SuspenseLoader from 'src/components/SuspenseLoader'; diff --git a/packages/manager/src/features/Managed/Credentials/UpdateCredentialDrawer.tsx b/packages/manager/src/features/Managed/Credentials/UpdateCredentialDrawer.tsx index 7433a1f0444..4c70023b0f1 100644 --- a/packages/manager/src/features/Managed/Credentials/UpdateCredentialDrawer.tsx +++ b/packages/manager/src/features/Managed/Credentials/UpdateCredentialDrawer.tsx @@ -2,7 +2,7 @@ import { CredentialPayload } from '@linode/api-v4/lib/managed'; import { Formik } from 'formik'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; import SuspenseLoader from 'src/components/SuspenseLoader'; diff --git a/packages/manager/src/features/Managed/ManagedDashboardCard/MonitorTickets.tsx b/packages/manager/src/features/Managed/ManagedDashboardCard/MonitorTickets.tsx index 0fcc4135f5f..fd63cad8318 100644 --- a/packages/manager/src/features/Managed/ManagedDashboardCard/MonitorTickets.tsx +++ b/packages/manager/src/features/Managed/ManagedDashboardCard/MonitorTickets.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { Link, useHistory } from 'react-router-dom'; import TicketIcon from 'src/assets/icons/ticket.svg'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Managed/MonitorDrawer.tsx b/packages/manager/src/features/Managed/MonitorDrawer.tsx index f93c9e53441..bb943223bfe 100644 --- a/packages/manager/src/features/Managed/MonitorDrawer.tsx +++ b/packages/manager/src/features/Managed/MonitorDrawer.tsx @@ -9,7 +9,7 @@ import { Formik } from 'formik'; import { pickBy } from 'ramda'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import InputAdornment from 'src/components/core/InputAdornment'; import Drawer from 'src/components/Drawer'; import Select, { Item } from 'src/components/EnhancedSelect/Select'; diff --git a/packages/manager/src/features/Managed/Monitors/HistoryDrawer.tsx b/packages/manager/src/features/Managed/Monitors/HistoryDrawer.tsx index fcb549ff820..da8c76c26de 100644 --- a/packages/manager/src/features/Managed/Monitors/HistoryDrawer.tsx +++ b/packages/manager/src/features/Managed/Monitors/HistoryDrawer.tsx @@ -2,7 +2,7 @@ import { ManagedIssue } from '@linode/api-v4/lib/managed'; import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import Drawer from 'src/components/Drawer'; import { ErrorState } from 'src/components/ErrorState/ErrorState'; diff --git a/packages/manager/src/features/Managed/SSHAccess/EditSSHAccessDrawer.tsx b/packages/manager/src/features/Managed/SSHAccess/EditSSHAccessDrawer.tsx index 771aac68341..a56b0559e4c 100644 --- a/packages/manager/src/features/Managed/SSHAccess/EditSSHAccessDrawer.tsx +++ b/packages/manager/src/features/Managed/SSHAccess/EditSSHAccessDrawer.tsx @@ -2,7 +2,7 @@ import { Formik, FormikHelpers } from 'formik'; import { ManagedLinodeSetting } from '@linode/api-v4/lib/managed'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormControlLabel from 'src/components/core/FormControlLabel'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Managed/SSHAccess/LinodePubKey.tsx b/packages/manager/src/features/Managed/SSHAccess/LinodePubKey.tsx index 760c1a64d26..eed43dda4cd 100644 --- a/packages/manager/src/features/Managed/SSHAccess/LinodePubKey.tsx +++ b/packages/manager/src/features/Managed/SSHAccess/LinodePubKey.tsx @@ -1,7 +1,7 @@ import copy from 'copy-to-clipboard'; import * as React from 'react'; import SSHKeyIcon from 'src/assets/icons/ssh-key.svg'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import Box from 'src/components/core/Box'; import Paper from 'src/components/core/Paper'; diff --git a/packages/manager/src/features/Managed/SupportWidget.tsx b/packages/manager/src/features/Managed/SupportWidget.tsx index 33b9e1e3a52..36974b714d9 100644 --- a/packages/manager/src/features/Managed/SupportWidget.tsx +++ b/packages/manager/src/features/Managed/SupportWidget.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import { compose } from 'recompose'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import SupportTicketDrawer from 'src/features/Support/SupportTickets/SupportTicketDrawer'; diff --git a/packages/manager/src/features/NodeBalancers/NodeBalancerConfigNode.tsx b/packages/manager/src/features/NodeBalancers/NodeBalancerConfigNode.tsx index c436ac46d0f..c74900c280a 100644 --- a/packages/manager/src/features/NodeBalancers/NodeBalancerConfigNode.tsx +++ b/packages/manager/src/features/NodeBalancers/NodeBalancerConfigNode.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Divider from 'src/components/core/Divider'; import Grid from '@mui/material/Unstable_Grid2'; import MenuItem from 'src/components/core/MenuItem'; diff --git a/packages/manager/src/features/NodeBalancers/NodeBalancerConfigPanel.tsx b/packages/manager/src/features/NodeBalancers/NodeBalancerConfigPanel.tsx index e0c8ebb869b..f385026554b 100644 --- a/packages/manager/src/features/NodeBalancers/NodeBalancerConfigPanel.tsx +++ b/packages/manager/src/features/NodeBalancers/NodeBalancerConfigPanel.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Divider from 'src/components/core/Divider'; import FormHelperText from 'src/components/core/FormHelperText'; import Grid from '@mui/material/Unstable_Grid2'; diff --git a/packages/manager/src/features/NodeBalancers/NodeBalancerCreate.tsx b/packages/manager/src/features/NodeBalancers/NodeBalancerCreate.tsx index 01d0cdf12d7..0fb18bbe7e1 100644 --- a/packages/manager/src/features/NodeBalancers/NodeBalancerCreate.tsx +++ b/packages/manager/src/features/NodeBalancers/NodeBalancerCreate.tsx @@ -3,7 +3,7 @@ import useMediaQuery from '@mui/material/useMediaQuery'; import { useTheme } from '@mui/styles'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Box from 'src/components/core/Box'; import Accordion from 'src/components/Accordion'; import Paper from 'src/components/core/Paper'; diff --git a/packages/manager/src/features/NodeBalancers/NodeBalancerDetail/NodeBalancerConfigurations.tsx b/packages/manager/src/features/NodeBalancers/NodeBalancerDetail/NodeBalancerConfigurations.tsx index fce230e34ad..629310ceb39 100644 --- a/packages/manager/src/features/NodeBalancers/NodeBalancerDetail/NodeBalancerConfigurations.tsx +++ b/packages/manager/src/features/NodeBalancers/NodeBalancerDetail/NodeBalancerConfigurations.tsx @@ -28,7 +28,7 @@ import { RouteComponentProps, withRouter } from 'react-router-dom'; import { compose as composeC } from 'recompose'; import Accordion from 'src/components/Accordion'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { styled } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/NodeBalancers/NodeBalancerDetail/NodeBalancerSettings.tsx b/packages/manager/src/features/NodeBalancers/NodeBalancerDetail/NodeBalancerSettings.tsx index 2afcd7fa584..582b6e64367 100644 --- a/packages/manager/src/features/NodeBalancers/NodeBalancerDetail/NodeBalancerSettings.tsx +++ b/packages/manager/src/features/NodeBalancers/NodeBalancerDetail/NodeBalancerSettings.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Accordion from 'src/components/Accordion'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormHelperText from 'src/components/core/FormHelperText'; import InputAdornment from 'src/components/core/InputAdornment'; import { TextField } from 'src/components/TextField'; diff --git a/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyDrawer.tsx b/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyDrawer.tsx index 2834f628461..d7b187e0cf5 100644 --- a/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyDrawer.tsx +++ b/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { TextField } from 'src/components/TextField'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/ObjectStorage/AccessKeyLanding/RevokeAccessKeyDialog.tsx b/packages/manager/src/features/ObjectStorage/AccessKeyLanding/RevokeAccessKeyDialog.tsx index 0951f2a62d8..54f994b259f 100644 --- a/packages/manager/src/features/ObjectStorage/AccessKeyLanding/RevokeAccessKeyDialog.tsx +++ b/packages/manager/src/features/ObjectStorage/AccessKeyLanding/RevokeAccessKeyDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { APIError } from '@linode/api-v4/lib/types'; import { CancelNotice } from '../CancelNotice'; diff --git a/packages/manager/src/features/ObjectStorage/BucketDetail/AccessSelect.tsx b/packages/manager/src/features/ObjectStorage/BucketDetail/AccessSelect.tsx index 7cd1716f3ba..72cb112e846 100644 --- a/packages/manager/src/features/ObjectStorage/BucketDetail/AccessSelect.tsx +++ b/packages/manager/src/features/ObjectStorage/BucketDetail/AccessSelect.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import EnhancedSelect from 'src/components/EnhancedSelect'; import ExternalLink from 'src/components/ExternalLink'; import FormControlLabel from 'src/components/core/FormControlLabel'; diff --git a/packages/manager/src/features/ObjectStorage/BucketDetail/BucketDetail.styles.ts b/packages/manager/src/features/ObjectStorage/BucketDetail/BucketDetail.styles.ts index 977be8fa834..abcfedc53a2 100644 --- a/packages/manager/src/features/ObjectStorage/BucketDetail/BucketDetail.styles.ts +++ b/packages/manager/src/features/ObjectStorage/BucketDetail/BucketDetail.styles.ts @@ -1,4 +1,4 @@ -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { StyledLinkButton } from 'src/components/Button/StyledLinkButton'; import { styled } from '@mui/material/styles'; diff --git a/packages/manager/src/features/ObjectStorage/BucketDetail/BucketDetail.tsx b/packages/manager/src/features/ObjectStorage/BucketDetail/BucketDetail.tsx index c219be9f9aa..f08bd056a23 100644 --- a/packages/manager/src/features/ObjectStorage/BucketDetail/BucketDetail.tsx +++ b/packages/manager/src/features/ObjectStorage/BucketDetail/BucketDetail.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Hidden from 'src/components/core/Hidden'; import ObjectTableContent from './ObjectTableContent'; import produce from 'immer'; diff --git a/packages/manager/src/features/ObjectStorage/BucketDetail/BucketSSL.tsx b/packages/manager/src/features/ObjectStorage/BucketDetail/BucketSSL.tsx index 8fcc10c68a8..13dab383cdd 100644 --- a/packages/manager/src/features/ObjectStorage/BucketDetail/BucketSSL.tsx +++ b/packages/manager/src/features/ObjectStorage/BucketDetail/BucketSSL.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Paper from 'src/components/core/Paper'; import Typography from 'src/components/core/Typography'; import ExternalLink from 'src/components/ExternalLink'; diff --git a/packages/manager/src/features/ObjectStorage/BucketDetail/CreateFolderDrawer.tsx b/packages/manager/src/features/ObjectStorage/BucketDetail/CreateFolderDrawer.tsx index b1c7173c4e1..1c6ea7ec4d0 100644 --- a/packages/manager/src/features/ObjectStorage/BucketDetail/CreateFolderDrawer.tsx +++ b/packages/manager/src/features/ObjectStorage/BucketDetail/CreateFolderDrawer.tsx @@ -4,7 +4,7 @@ import { TextField } from 'src/components/TextField'; import ActionsPanel from 'src/components/ActionsPanel'; import { useFormik } from 'formik'; import { useCreateObjectUrlMutation } from 'src/queries/objectStorage'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; interface Props { open: boolean; diff --git a/packages/manager/src/features/ObjectStorage/BucketLanding/CreateBucketDrawer.tsx b/packages/manager/src/features/ObjectStorage/BucketLanding/CreateBucketDrawer.tsx index 8f2562e4eb8..b247a747dc2 100644 --- a/packages/manager/src/features/ObjectStorage/BucketLanding/CreateBucketDrawer.tsx +++ b/packages/manager/src/features/ObjectStorage/BucketLanding/CreateBucketDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import ClusterSelect from './ClusterSelect'; import Drawer from 'src/components/Drawer'; import EnableObjectStorageModal from '../EnableObjectStorageModal'; diff --git a/packages/manager/src/features/ObjectStorage/EnableObjectStorageModal.tsx b/packages/manager/src/features/ObjectStorage/EnableObjectStorageModal.tsx index 9252ee112cc..d4034d7c4d5 100644 --- a/packages/manager/src/features/ObjectStorage/EnableObjectStorageModal.tsx +++ b/packages/manager/src/features/ObjectStorage/EnableObjectStorageModal.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import ExternalLink from 'src/components/ExternalLink'; diff --git a/packages/manager/src/features/ObjectStorage/ObjectUploader/FileUpload.tsx b/packages/manager/src/features/ObjectStorage/ObjectUploader/FileUpload.tsx index c5076484f43..fbc3d3b627d 100644 --- a/packages/manager/src/features/ObjectStorage/ObjectUploader/FileUpload.tsx +++ b/packages/manager/src/features/ObjectStorage/ObjectUploader/FileUpload.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import CautionIcon from 'src/assets/icons/caution.svg'; import FileUploadComplete from 'src/assets/icons/fileUploadComplete.svg'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { LinearProgress } from 'src/components/LinearProgress'; import Tooltip from 'src/components/core/Tooltip'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/ObjectStorage/ObjectUploader/ObjectUploader.tsx b/packages/manager/src/features/ObjectStorage/ObjectUploader/ObjectUploader.tsx index 4023e04a3dd..4ddc4cfa938 100644 --- a/packages/manager/src/features/ObjectStorage/ObjectUploader/ObjectUploader.tsx +++ b/packages/manager/src/features/ObjectStorage/ObjectUploader/ObjectUploader.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { debounce } from 'throttle-debounce'; import { FileUpload } from './FileUpload'; import { getObjectURL } from '@linode/api-v4/lib/object-storage'; diff --git a/packages/manager/src/features/OneClickApps/AppDetailDrawer.tsx b/packages/manager/src/features/OneClickApps/AppDetailDrawer.tsx index 78ce523f463..04c0323e1fd 100644 --- a/packages/manager/src/features/OneClickApps/AppDetailDrawer.tsx +++ b/packages/manager/src/features/OneClickApps/AppDetailDrawer.tsx @@ -4,7 +4,7 @@ import { Theme } from '@mui/material/styles'; import { sanitizeHTML } from 'src/utilities/sanitize-html'; import { oneClickApps } from './oneClickApps'; import Close from '@mui/icons-material/Close'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import Box from 'src/components/core/Box'; import Drawer from 'src/components/core/Drawer'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Profile/APITokens/CreateAPITokenDrawer.tsx b/packages/manager/src/features/Profile/APITokens/CreateAPITokenDrawer.tsx index 2ade2686d39..688e5f72a89 100644 --- a/packages/manager/src/features/Profile/APITokens/CreateAPITokenDrawer.tsx +++ b/packages/manager/src/features/Profile/APITokens/CreateAPITokenDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import FormControl from 'src/components/core/FormControl'; import FormHelperText from 'src/components/core/FormHelperText'; diff --git a/packages/manager/src/features/Profile/APITokens/EditAPITokenDrawer.tsx b/packages/manager/src/features/Profile/APITokens/EditAPITokenDrawer.tsx index 78e18b3a1c5..c67604ccc01 100644 --- a/packages/manager/src/features/Profile/APITokens/EditAPITokenDrawer.tsx +++ b/packages/manager/src/features/Profile/APITokens/EditAPITokenDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; import { TextField } from 'src/components/TextField'; diff --git a/packages/manager/src/features/Profile/APITokens/RevokeTokenDialog.tsx b/packages/manager/src/features/Profile/APITokens/RevokeTokenDialog.tsx index 3e12eea61a3..855d9bb3ca5 100644 --- a/packages/manager/src/features/Profile/APITokens/RevokeTokenDialog.tsx +++ b/packages/manager/src/features/Profile/APITokens/RevokeTokenDialog.tsx @@ -3,7 +3,7 @@ import { ConfirmationDialog } from 'src/components/ConfirmationDialog/Confirmati import ActionsPanel from 'src/components/ActionsPanel'; import Typography from 'src/components/core/Typography'; import { Token } from '@linode/api-v4/lib/profile/types'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { APITokenType } from './APITokenTable'; import { useRevokeAppAccessTokenMutation, diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/PhoneVerification/PhoneVerification.tsx b/packages/manager/src/features/Profile/AuthenticationSettings/PhoneVerification/PhoneVerification.tsx index 59d2a29b10d..ef5880412cb 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/PhoneVerification/PhoneVerification.tsx +++ b/packages/manager/src/features/Profile/AuthenticationSettings/PhoneVerification/PhoneVerification.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import InputAdornment from 'src/components/core/InputAdornment'; import { TextField } from 'src/components/TextField'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/RevokeTrustedDevicesDialog.tsx b/packages/manager/src/features/Profile/AuthenticationSettings/RevokeTrustedDevicesDialog.tsx index 1607ac80646..d3303164efd 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/RevokeTrustedDevicesDialog.tsx +++ b/packages/manager/src/features/Profile/AuthenticationSettings/RevokeTrustedDevicesDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { useRevokeTrustedDeviceMutation } from 'src/queries/profile'; diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/SMSMessaging.tsx b/packages/manager/src/features/Profile/AuthenticationSettings/SMSMessaging.tsx index 3006d69e44c..e968b2e2f55 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/SMSMessaging.tsx +++ b/packages/manager/src/features/Profile/AuthenticationSettings/SMSMessaging.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { getFormattedNumber } from './PhoneVerification/helpers'; diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/SecurityQuestions/SecurityQuestions.tsx b/packages/manager/src/features/Profile/AuthenticationSettings/SecurityQuestions/SecurityQuestions.tsx index e32267d80ee..ac7ae2164aa 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/SecurityQuestions/SecurityQuestions.tsx +++ b/packages/manager/src/features/Profile/AuthenticationSettings/SecurityQuestions/SecurityQuestions.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { CircleProgress } from 'src/components/CircleProgress'; import { getAnsweredQuestions, securityQuestionsToItems } from './utilities'; diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/TPADialog.tsx b/packages/manager/src/features/Profile/AuthenticationSettings/TPADialog.tsx index 685edf218fc..56ba2b6d486 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/TPADialog.tsx +++ b/packages/manager/src/features/Profile/AuthenticationSettings/TPADialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import useFlags from 'src/hooks/useFlags'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/TPAProviders.styles.ts b/packages/manager/src/features/Profile/AuthenticationSettings/TPAProviders.styles.ts index 62e98cfa4e4..9c630ee6ee9 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/TPAProviders.styles.ts +++ b/packages/manager/src/features/Profile/AuthenticationSettings/TPAProviders.styles.ts @@ -1,4 +1,4 @@ -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Grid from '@mui/material/Unstable_Grid2'; import Paper from 'src/components/core/Paper'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/ConfirmToken.tsx b/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/ConfirmToken.tsx index a5cccbb8ed1..a1bc3ae4c00 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/ConfirmToken.tsx +++ b/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/ConfirmToken.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { TextField } from 'src/components/TextField'; import Typography from 'src/components/core/Typography'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/DisableTwoFactorDialog.tsx b/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/DisableTwoFactorDialog.tsx index cd2009fa79d..9510b336a37 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/DisableTwoFactorDialog.tsx +++ b/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/DisableTwoFactorDialog.tsx @@ -2,7 +2,7 @@ import { disableTwoFactor } from '@linode/api-v4/lib/profile'; import * as React from 'react'; import { compose } from 'recompose'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import withLoadingAndError, { diff --git a/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/ScratchCodeDialog.tsx b/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/ScratchCodeDialog.tsx index 6031ec86699..b0ad813c6ce 100644 --- a/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/ScratchCodeDialog.tsx +++ b/packages/manager/src/features/Profile/AuthenticationSettings/TwoFactor/ScratchCodeDialog.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Profile/DisplaySettings/TimezoneForm.tsx b/packages/manager/src/features/Profile/DisplaySettings/TimezoneForm.tsx index 9ae5df49e58..923509c5136 100644 --- a/packages/manager/src/features/Profile/DisplaySettings/TimezoneForm.tsx +++ b/packages/manager/src/features/Profile/DisplaySettings/TimezoneForm.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Select, { Item } from 'src/components/EnhancedSelect/Select'; import timezones from 'src/assets/timezones/timezones'; import Typography from 'src/components/core/Typography'; diff --git a/packages/manager/src/features/Profile/LishSettings/LishSettings.tsx b/packages/manager/src/features/Profile/LishSettings/LishSettings.tsx index 2c185589f42..681f3fa36c9 100644 --- a/packages/manager/src/features/Profile/LishSettings/LishSettings.tsx +++ b/packages/manager/src/features/Profile/LishSettings/LishSettings.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormControl from 'src/components/core/FormControl'; import getAPIErrorFor from 'src/utilities/getAPIErrorFor'; import Paper from 'src/components/core/Paper'; diff --git a/packages/manager/src/features/Profile/OAuthClients/CreateOAuthClientDrawer.tsx b/packages/manager/src/features/Profile/OAuthClients/CreateOAuthClientDrawer.tsx index 2b4068aa46d..e01a894b934 100644 --- a/packages/manager/src/features/Profile/OAuthClients/CreateOAuthClientDrawer.tsx +++ b/packages/manager/src/features/Profile/OAuthClients/CreateOAuthClientDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import FormControl from 'src/components/core/FormControl'; import FormControlLabel from 'src/components/core/FormControlLabel'; diff --git a/packages/manager/src/features/Profile/OAuthClients/DeleteOAuthClientDialog.tsx b/packages/manager/src/features/Profile/OAuthClients/DeleteOAuthClientDialog.tsx index 063178964d4..9ae135ff8cb 100644 --- a/packages/manager/src/features/Profile/OAuthClients/DeleteOAuthClientDialog.tsx +++ b/packages/manager/src/features/Profile/OAuthClients/DeleteOAuthClientDialog.tsx @@ -1,6 +1,6 @@ import React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { useDeleteOAuthClientMutation } from 'src/queries/accountOAuth'; diff --git a/packages/manager/src/features/Profile/OAuthClients/EditOAuthClientDrawer.tsx b/packages/manager/src/features/Profile/OAuthClients/EditOAuthClientDrawer.tsx index 02d1d9ea6a0..5c6c1770b17 100644 --- a/packages/manager/src/features/Profile/OAuthClients/EditOAuthClientDrawer.tsx +++ b/packages/manager/src/features/Profile/OAuthClients/EditOAuthClientDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CheckBox from 'src/components/CheckBox'; import FormControl from 'src/components/core/FormControl'; import FormControlLabel from 'src/components/core/FormControlLabel'; diff --git a/packages/manager/src/features/Profile/OAuthClients/ResetOAuthClientDialog.tsx b/packages/manager/src/features/Profile/OAuthClients/ResetOAuthClientDialog.tsx index 169d4de6463..444d938ebd9 100644 --- a/packages/manager/src/features/Profile/OAuthClients/ResetOAuthClientDialog.tsx +++ b/packages/manager/src/features/Profile/OAuthClients/ResetOAuthClientDialog.tsx @@ -1,6 +1,6 @@ import React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { useResetOAuthClientMutation } from 'src/queries/accountOAuth'; diff --git a/packages/manager/src/features/Profile/SSHKeys/CreateSSHKeyDrawer.tsx b/packages/manager/src/features/Profile/SSHKeys/CreateSSHKeyDrawer.tsx index ee0e6a179cd..01c9618037e 100644 --- a/packages/manager/src/features/Profile/SSHKeys/CreateSSHKeyDrawer.tsx +++ b/packages/manager/src/features/Profile/SSHKeys/CreateSSHKeyDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; import { TextField } from 'src/components/TextField'; diff --git a/packages/manager/src/features/Profile/SSHKeys/DeleteSSHKeyDialog.tsx b/packages/manager/src/features/Profile/SSHKeys/DeleteSSHKeyDialog.tsx index b0c55ea0733..752ab92b601 100644 --- a/packages/manager/src/features/Profile/SSHKeys/DeleteSSHKeyDialog.tsx +++ b/packages/manager/src/features/Profile/SSHKeys/DeleteSSHKeyDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { useDeleteSSHKeyMutation } from 'src/queries/profile'; diff --git a/packages/manager/src/features/Profile/SSHKeys/EditSSHKeyDrawer.tsx b/packages/manager/src/features/Profile/SSHKeys/EditSSHKeyDrawer.tsx index 244664b30f4..e36697c6a2e 100644 --- a/packages/manager/src/features/Profile/SSHKeys/EditSSHKeyDrawer.tsx +++ b/packages/manager/src/features/Profile/SSHKeys/EditSSHKeyDrawer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; import { TextField } from 'src/components/TextField'; diff --git a/packages/manager/src/features/Profile/SecretTokenDialog/SecretTokenDialog.tsx b/packages/manager/src/features/Profile/SecretTokenDialog/SecretTokenDialog.tsx index 53f3bf02864..9ac8800f6dc 100644 --- a/packages/manager/src/features/Profile/SecretTokenDialog/SecretTokenDialog.tsx +++ b/packages/manager/src/features/Profile/SecretTokenDialog/SecretTokenDialog.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; import Box from 'src/components/core/Box'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import CopyableAndDownloadableTextField from 'src/components/CopyableAndDownloadableTextField'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Profile/Settings/PreferenceEditor.tsx b/packages/manager/src/features/Profile/Settings/PreferenceEditor.tsx index 2bf0a82849e..f8e3e9df2c3 100644 --- a/packages/manager/src/features/Profile/Settings/PreferenceEditor.tsx +++ b/packages/manager/src/features/Profile/Settings/PreferenceEditor.tsx @@ -5,7 +5,7 @@ import { } from 'src/components/Dialog/Dialog'; import Typography from 'src/components/core/Typography'; import Link from 'src/components/Link'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { Notice } from 'src/components/Notice/Notice'; import { useMutatePreferences, usePreferences } from 'src/queries/preferences'; diff --git a/packages/manager/src/features/Search/ResultGroup.test.tsx b/packages/manager/src/features/Search/ResultGroup.test.tsx index 5bb70c4be63..dd020500e76 100644 --- a/packages/manager/src/features/Search/ResultGroup.test.tsx +++ b/packages/manager/src/features/Search/ResultGroup.test.tsx @@ -2,7 +2,7 @@ import { shallow } from 'enzyme'; import * as React from 'react'; import { searchbarResult1, searchbarResult2 } from 'src/__data__/searchResults'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Typography from 'src/components/core/Typography'; import { ResultGroup } from './ResultGroup'; diff --git a/packages/manager/src/features/Search/ResultGroup.tsx b/packages/manager/src/features/Search/ResultGroup.tsx index b6300370fb7..1f7d2fb19a6 100644 --- a/packages/manager/src/features/Search/ResultGroup.tsx +++ b/packages/manager/src/features/Search/ResultGroup.tsx @@ -1,7 +1,7 @@ import { isEmpty, splitAt } from 'ramda'; import * as React from 'react'; import { compose, withStateHandlers } from 'recompose'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Hidden from 'src/components/core/Hidden'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/StackScripts/SelectStackScriptPanel/SelectStackScriptPanel.tsx b/packages/manager/src/features/StackScripts/SelectStackScriptPanel/SelectStackScriptPanel.tsx index 66425f62e4b..1b2d5e15305 100644 --- a/packages/manager/src/features/StackScripts/SelectStackScriptPanel/SelectStackScriptPanel.tsx +++ b/packages/manager/src/features/StackScripts/SelectStackScriptPanel/SelectStackScriptPanel.tsx @@ -9,7 +9,7 @@ import { import { Filter, Params, ResourcePage } from '@linode/api-v4/lib/types'; import * as React from 'react'; import { compose } from 'recompose'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import Paper from 'src/components/core/Paper'; import { createStyles, withStyles, WithStyles } from '@mui/styles'; diff --git a/packages/manager/src/features/StackScripts/SelectStackScriptPanel/StackScriptSelectionRow.tsx b/packages/manager/src/features/StackScripts/SelectStackScriptPanel/StackScriptSelectionRow.tsx index 76e510dd21d..28ca8b29c5a 100644 --- a/packages/manager/src/features/StackScripts/SelectStackScriptPanel/StackScriptSelectionRow.tsx +++ b/packages/manager/src/features/StackScripts/SelectStackScriptPanel/StackScriptSelectionRow.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { connect, MapDispatchToProps } from 'react-redux'; import { compose as recompose } from 'recompose'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { withStyles, WithStyles } from '@mui/styles'; import Typography from 'src/components/core/Typography'; import Grid from '@mui/material/Unstable_Grid2'; diff --git a/packages/manager/src/features/StackScripts/StackScriptBase/StackScriptBase.tsx b/packages/manager/src/features/StackScripts/StackScriptBase/StackScriptBase.tsx index 77606b7682c..eaa56d5a6f2 100644 --- a/packages/manager/src/features/StackScripts/StackScriptBase/StackScriptBase.tsx +++ b/packages/manager/src/features/StackScripts/StackScriptBase/StackScriptBase.tsx @@ -5,7 +5,7 @@ import { generateCatchAllFilter, generateSpecificFilter, } from '../stackScriptUtils'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import classNames from 'classnames'; import { CircleProgress } from 'src/components/CircleProgress'; import { compose } from 'recompose'; diff --git a/packages/manager/src/features/StackScripts/StackScriptCreate/StackScriptCreate.tsx b/packages/manager/src/features/StackScripts/StackScriptCreate/StackScriptCreate.tsx index 4b254538291..eef50b494d7 100644 --- a/packages/manager/src/features/StackScripts/StackScriptCreate/StackScriptCreate.tsx +++ b/packages/manager/src/features/StackScripts/StackScriptCreate/StackScriptCreate.tsx @@ -12,7 +12,7 @@ import * as React from 'react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import { compose } from 'recompose'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { createStyles, withStyles, WithStyles } from '@mui/styles'; diff --git a/packages/manager/src/features/StackScripts/StackScriptForm/StackScriptForm.tsx b/packages/manager/src/features/StackScripts/StackScriptForm/StackScriptForm.tsx index 6381e38a0e9..8f596de3beb 100644 --- a/packages/manager/src/features/StackScripts/StackScriptForm/StackScriptForm.tsx +++ b/packages/manager/src/features/StackScripts/StackScriptForm/StackScriptForm.tsx @@ -2,7 +2,7 @@ import { Image } from '@linode/api-v4/lib/images'; import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import InputAdornment from 'src/components/core/InputAdornment'; import Paper from 'src/components/core/Paper'; import { makeStyles } from '@mui/styles'; diff --git a/packages/manager/src/features/StackScripts/StackScriptPanel/StackScriptPanelContent.tsx b/packages/manager/src/features/StackScripts/StackScriptPanel/StackScriptPanelContent.tsx index c29c7d96ac8..87c5e9310e5 100644 --- a/packages/manager/src/features/StackScripts/StackScriptPanel/StackScriptPanelContent.tsx +++ b/packages/manager/src/features/StackScripts/StackScriptPanel/StackScriptPanelContent.tsx @@ -7,7 +7,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import { compose } from 'recompose'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import { StackScriptsRequest } from 'src/features/StackScripts/types'; diff --git a/packages/manager/src/features/Support/AttachFileForm.tsx b/packages/manager/src/features/Support/AttachFileForm.tsx index 804664133db..27353bdc8ac 100644 --- a/packages/manager/src/features/Support/AttachFileForm.tsx +++ b/packages/manager/src/features/Support/AttachFileForm.tsx @@ -2,7 +2,7 @@ import AttachFile from '@mui/icons-material/AttachFile'; import { equals, remove } from 'ramda'; import * as React from 'react'; import { compose } from 'recompose'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { createStyles, withStyles, WithStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import AttachFileListItem from './AttachFileListItem'; diff --git a/packages/manager/src/features/Support/SupportTicketDetail/CloseTicketLink.tsx b/packages/manager/src/features/Support/SupportTicketDetail/CloseTicketLink.tsx index ab43c70872c..565fb23901e 100644 --- a/packages/manager/src/features/Support/SupportTicketDetail/CloseTicketLink.tsx +++ b/packages/manager/src/features/Support/SupportTicketDetail/CloseTicketLink.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Support/SupportTicketDetail/TabbedReply/ReplyActions.tsx b/packages/manager/src/features/Support/SupportTicketDetail/TabbedReply/ReplyActions.tsx index 9bcf1307a34..c014d71ed90 100644 --- a/packages/manager/src/features/Support/SupportTicketDetail/TabbedReply/ReplyActions.tsx +++ b/packages/manager/src/features/Support/SupportTicketDetail/TabbedReply/ReplyActions.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CloseTicketLink } from '../CloseTicketLink'; import { makeStyles } from '@mui/styles'; diff --git a/packages/manager/src/features/Support/SupportTickets/SupportTicketDrawer.tsx b/packages/manager/src/features/Support/SupportTickets/SupportTicketDrawer.tsx index d973a58ae29..c50e9074995 100644 --- a/packages/manager/src/features/Support/SupportTickets/SupportTicketDrawer.tsx +++ b/packages/manager/src/features/Support/SupportTickets/SupportTicketDrawer.tsx @@ -9,7 +9,7 @@ import * as React from 'react'; import { compose as recompose } from 'recompose'; import Accordion from 'src/components/Accordion'; import { StyledActionPanel } from 'src/components/ActionsPanel/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormHelperText from 'src/components/core/FormHelperText'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/ToastNotifications/ToastNotifications.stories.mdx b/packages/manager/src/features/ToastNotifications/ToastNotifications.stories.mdx index fe47e85fb16..238ed615954 100644 --- a/packages/manager/src/features/ToastNotifications/ToastNotifications.stories.mdx +++ b/packages/manager/src/features/ToastNotifications/ToastNotifications.stories.mdx @@ -1,6 +1,6 @@ import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs'; import { withSnackbar, useSnackbar } from 'notistack'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Snackbar from 'src/components/SnackBar'; diff --git a/packages/manager/src/features/TopMenu/AddNewMenu/AddNewMenu.tsx b/packages/manager/src/features/TopMenu/AddNewMenu/AddNewMenu.tsx index 24b67dd08a2..ab67002741b 100644 --- a/packages/manager/src/features/TopMenu/AddNewMenu/AddNewMenu.tsx +++ b/packages/manager/src/features/TopMenu/AddNewMenu/AddNewMenu.tsx @@ -10,7 +10,7 @@ import NodebalancerIcon from 'src/assets/icons/entityIcons/nodebalancer.svg'; import OneClickIcon from 'src/assets/icons/entityIcons/oneclick.svg'; import VolumeIcon from 'src/assets/icons/entityIcons/volume.svg'; import DatabaseIcon from 'src/assets/icons/entityIcons/database.svg'; -import Button from 'src/components/Button/Button'; +import { Button } from 'src/components/Button/Button'; import Divider from 'src/components/core/Divider'; import { Link } from 'react-router-dom'; import { diff --git a/packages/manager/src/features/TopMenu/NotificationMenu/NotificationMenu.tsx b/packages/manager/src/features/TopMenu/NotificationMenu/NotificationMenu.tsx index 675dc5fedb8..e0c4bac4941 100644 --- a/packages/manager/src/features/TopMenu/NotificationMenu/NotificationMenu.tsx +++ b/packages/manager/src/features/TopMenu/NotificationMenu/NotificationMenu.tsx @@ -12,7 +12,7 @@ import { import { useFormattedNotifications } from 'src/features/NotificationCenter/NotificationData/useFormattedNotifications'; import { useEventNotifications } from 'src/features/NotificationCenter/NotificationData/useEventNotifications'; import MenuItem from 'src/components/MenuItem'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import ClickAwayListener from 'src/components/core/ClickAwayListener'; import MenuList from 'src/components/core/MenuList'; import Paper from 'src/components/core/Paper'; diff --git a/packages/manager/src/features/Users/CreateUserDrawer.tsx b/packages/manager/src/features/Users/CreateUserDrawer.tsx index 41c392dddac..de17ad25f1b 100644 --- a/packages/manager/src/features/Users/CreateUserDrawer.tsx +++ b/packages/manager/src/features/Users/CreateUserDrawer.tsx @@ -3,7 +3,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormControlLabel from 'src/components/core/FormControlLabel'; import Drawer from 'src/components/Drawer'; import { Notice } from 'src/components/Notice/Notice'; diff --git a/packages/manager/src/features/Users/UserDeleteConfirmationDialog.tsx b/packages/manager/src/features/Users/UserDeleteConfirmationDialog.tsx index 0204deb1d05..da35ada31d0 100644 --- a/packages/manager/src/features/Users/UserDeleteConfirmationDialog.tsx +++ b/packages/manager/src/features/Users/UserDeleteConfirmationDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; interface Props { diff --git a/packages/manager/src/features/Users/UserPermissions.tsx b/packages/manager/src/features/Users/UserPermissions.tsx index 978e37b740d..63e512dbe08 100644 --- a/packages/manager/src/features/Users/UserPermissions.tsx +++ b/packages/manager/src/features/Users/UserPermissions.tsx @@ -11,7 +11,7 @@ import { APIError } from '@linode/api-v4/lib/types'; import { compose, flatten, lensPath, omit, set } from 'ramda'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import Divider from 'src/components/core/Divider'; import FormControlLabel from 'src/components/core/FormControlLabel'; diff --git a/packages/manager/src/features/Users/UserProfile.tsx b/packages/manager/src/features/Users/UserProfile.tsx index 0dc2dd4e6e6..91ce9ecf2af 100644 --- a/packages/manager/src/features/Users/UserProfile.tsx +++ b/packages/manager/src/features/Users/UserProfile.tsx @@ -5,7 +5,7 @@ import { useSnackbar } from 'notistack'; import * as React from 'react'; import { useHistory } from 'react-router-dom'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CircleProgress } from 'src/components/CircleProgress'; import Paper from 'src/components/core/Paper'; import { Theme, useTheme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Volumes/UpgradeVolumeDialog.tsx b/packages/manager/src/features/Volumes/UpgradeVolumeDialog.tsx index 2c2ff9f3905..4ca2c4841ae 100644 --- a/packages/manager/src/features/Volumes/UpgradeVolumeDialog.tsx +++ b/packages/manager/src/features/Volumes/UpgradeVolumeDialog.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog'; import Typography from 'src/components/core/Typography'; import Link from 'src/components/Link'; diff --git a/packages/manager/src/features/Volumes/VolumeAttachmentDrawer.tsx b/packages/manager/src/features/Volumes/VolumeAttachmentDrawer.tsx index 65f8b7a2aac..f3d886f53a1 100644 --- a/packages/manager/src/features/Volumes/VolumeAttachmentDrawer.tsx +++ b/packages/manager/src/features/Volumes/VolumeAttachmentDrawer.tsx @@ -2,7 +2,7 @@ import { Grant } from '@linode/api-v4/lib/account'; import { useFormik } from 'formik'; import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import FormControl from 'src/components/core/FormControl'; import FormHelperText from 'src/components/core/FormHelperText'; import Drawer from 'src/components/Drawer'; diff --git a/packages/manager/src/features/Volumes/VolumeCreate/CreateVolumeForm.tsx b/packages/manager/src/features/Volumes/VolumeCreate/CreateVolumeForm.tsx index 41f1fbfe77d..52c7227fa06 100644 --- a/packages/manager/src/features/Volumes/VolumeCreate/CreateVolumeForm.tsx +++ b/packages/manager/src/features/Volumes/VolumeCreate/CreateVolumeForm.tsx @@ -6,7 +6,7 @@ import * as React from 'react'; import { connect, useSelector } from 'react-redux'; import { RouteComponentProps } from 'react-router-dom'; import { compose } from 'recompose'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import Box from 'src/components/core/Box'; import Form from 'src/components/core/Form'; import Paper from 'src/components/core/Paper'; diff --git a/packages/manager/src/features/Volumes/VolumeDrawer/ResizeVolumesInstruction.tsx b/packages/manager/src/features/Volumes/VolumeDrawer/ResizeVolumesInstruction.tsx index 58eb38eb7db..5bade3e6eae 100644 --- a/packages/manager/src/features/Volumes/VolumeDrawer/ResizeVolumesInstruction.tsx +++ b/packages/manager/src/features/Volumes/VolumeDrawer/ResizeVolumesInstruction.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; import { CopyableTextField } from 'src/components/CopyableTextField/CopyableTextField'; import { createStyles, withStyles, WithStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; diff --git a/packages/manager/src/features/Volumes/VolumeDrawer/VolumesActionsPanel.tsx b/packages/manager/src/features/Volumes/VolumeDrawer/VolumesActionsPanel.tsx index 7b08b645e2b..b18a5503e71 100644 --- a/packages/manager/src/features/Volumes/VolumeDrawer/VolumesActionsPanel.tsx +++ b/packages/manager/src/features/Volumes/VolumeDrawer/VolumesActionsPanel.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import ActionsPanel from 'src/components/ActionsPanel'; -import Button from 'src/components/Button'; +import { Button } from 'src/components/Button/Button'; interface Props { isSubmitting: boolean; From 1ed88fbf0777a8d7e6eae230c82dd2417f7a5c9b Mon Sep 17 00:00:00 2001 From: Banks Nussman Date: Tue, 27 Jun 2023 13:40:54 -0400 Subject: [PATCH 2/2] Added changeset: MUI v5 Migration - Components > Button --- .../manager/.changeset/pr-9325-tech-stories-1687887654571.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 packages/manager/.changeset/pr-9325-tech-stories-1687887654571.md diff --git a/packages/manager/.changeset/pr-9325-tech-stories-1687887654571.md b/packages/manager/.changeset/pr-9325-tech-stories-1687887654571.md new file mode 100644 index 00000000000..3e6fef15986 --- /dev/null +++ b/packages/manager/.changeset/pr-9325-tech-stories-1687887654571.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Tech Stories +--- + +MUI v5 Migration - Components > Button ([#9325](https://github.com/linode/manager/pull/9325))