diff --git a/ui/components/app/configure-snap-popup/configure-snap-popup.tsx b/ui/components/app/configure-snap-popup/configure-snap-popup.tsx
index ac9b77129..b0bdd707a 100644
--- a/ui/components/app/configure-snap-popup/configure-snap-popup.tsx
+++ b/ui/components/app/configure-snap-popup/configure-snap-popup.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import {
- BUTTON_VARIANT,
+ ButtonVariant,
Button,
Box,
Modal,
@@ -72,7 +72,7 @@ export default function ConfigureSnapPopup({
{t('configureSnapPopupLink')}
}>
+Demo}>
EndAccessory
;
```
diff --git a/ui/components/component-library/modal-header/modal-header.stories.tsx b/ui/components/component-library/modal-header/modal-header.stories.tsx
index 299221ca5..676cf7d09 100644
--- a/ui/components/component-library/modal-header/modal-header.stories.tsx
+++ b/ui/components/component-library/modal-header/modal-header.stories.tsx
@@ -10,7 +10,7 @@ import {
JustifyContent,
} from '../../../helpers/constants/design-system';
-import { AvatarAccount, BUTTON_SIZES, Button, Text } from '..';
+import { AvatarAccount, ButtonSize, Button, Text } from '..';
import { ModalHeader } from './modal-header';
import README from './README.mdx';
@@ -76,11 +76,11 @@ OnClose.args = {
export const StartAccessory = Template.bind({});
StartAccessory.args = {
children: 'StartAccessory demo',
- startAccessory: Demo,
+ startAccessory: Demo,
};
export const EndAccessory = Template.bind({});
EndAccessory.args = {
children: 'EndAccessory demo',
- endAccessory: Demo,
+ endAccessory: Demo,
};
diff --git a/ui/components/component-library/popover-header/README.mdx b/ui/components/component-library/popover-header/README.mdx
index 0680c2b6a..e01a82751 100644
--- a/ui/components/component-library/popover-header/README.mdx
+++ b/ui/components/component-library/popover-header/README.mdx
@@ -99,9 +99,9 @@ Use the `startAccessory` prop to render a component in the startAccessory positi
```jsx
-import { PopoverHeader, Button, BUTTON_SIZES } from '../../component-library';
+import { PopoverHeader, Button, ButtonSize } from '../../component-library';
-Demo}>
+Demo}>
StartAccessory
;
```
@@ -115,9 +115,9 @@ Use the `endAccessory` prop to render a component in the endAccessory position.
```jsx
-import { PopoverHeader, Button, BUTTON_SIZES } from '../../component-library';
+import { PopoverHeader, Button, ButtonSize } from '../../component-library';
-Demo}>
+Demo}>
EndAccessory
;
```
diff --git a/ui/components/component-library/popover-header/popover-header.stories.tsx b/ui/components/component-library/popover-header/popover-header.stories.tsx
index 92c188d81..9cdeaf10a 100644
--- a/ui/components/component-library/popover-header/popover-header.stories.tsx
+++ b/ui/components/component-library/popover-header/popover-header.stories.tsx
@@ -10,7 +10,7 @@ import {
JustifyContent,
} from '../../../helpers/constants/design-system';
-import { AvatarAccount, BUTTON_SIZES, Button, Text } from '..';
+import { AvatarAccount, ButtonSize, Button, Text } from '..';
import { PopoverHeader } from './popover-header';
import README from './README.mdx';
@@ -76,11 +76,11 @@ OnClose.args = {
export const StartAccessory = Template.bind({});
StartAccessory.args = {
children: 'StartAccessory demo',
- startAccessory: Demo,
+ startAccessory: Demo,
};
export const EndAccessory = Template.bind({});
EndAccessory.args = {
children: 'EndAccessory demo',
- endAccessory: Demo,
+ endAccessory: Demo,
};
diff --git a/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.stories.tsx b/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.stories.tsx
index 2f5ef9f72..5c713b10e 100644
--- a/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.stories.tsx
+++ b/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.stories.tsx
@@ -1,7 +1,7 @@
import { useArgs } from '@storybook/client-api';
import { StoryFn } from '@storybook/react';
import React from 'react';
-import { BUTTON_VARIANT, Button } from '../../../components/component-library';
+import { ButtonVariant, Button } from '../../../components/component-library';
import AddSnapAccountModal from '.';
const AddSnapAccountModalStory = {
@@ -16,7 +16,7 @@ export const DefaultStory: StoryFn = () => {
return (
<>
updateArgs({ isShowingModal: true })}
>
Open modal
diff --git a/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.tsx b/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.tsx
index 374f17b46..2aee96aca 100644
--- a/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.tsx
+++ b/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import {
- BUTTON_VARIANT,
+ ButtonVariant,
Box,
Button,
Modal,
@@ -53,7 +53,7 @@ export default function AddSnapAccountModal({
{t('addSnapAccountModalDescription')}
history.back()}
>
@@ -91,7 +91,7 @@ export const SnapDetailHeader = ({
{isInstalled && updateAvailable && (
{
setShowConfigPopoverType(ConfigureSnapPopupType.INSTALL);
@@ -103,7 +103,7 @@ export const SnapDetailHeader = ({
)}
{isInstalled && (
{
setShowConfigPopoverType(ConfigureSnapPopupType.CONFIGURE);
setShowConfigPopover(true);
@@ -114,7 +114,7 @@ export const SnapDetailHeader = ({
)}
{!isInstalled && (
{
setShowConfigPopoverType(ConfigureSnapPopupType.INSTALL);
setShowConfigPopover(true);
diff --git a/ui/pages/keyring-snaps/snap-account-detail-page/snap-account-detail-page.tsx b/ui/pages/keyring-snaps/snap-account-detail-page/snap-account-detail-page.tsx
index 711446ef4..e7f3e8f9f 100644
--- a/ui/pages/keyring-snaps/snap-account-detail-page/snap-account-detail-page.tsx
+++ b/ui/pages/keyring-snaps/snap-account-detail-page/snap-account-detail-page.tsx
@@ -3,7 +3,7 @@ import { useSelector } from 'react-redux';
import { useHistory, useParams } from 'react-router-dom';
import semver from 'semver';
import {
- BUTTON_VARIANT,
+ ButtonVariant,
Box,
Button,
Tag,
@@ -111,7 +111,7 @@ export default function SnapAccountDetailPage() {
{currentSnap.auditUrls.map((auditLink, index) => {
return (
-
+
{auditLink}
@@ -127,7 +127,7 @@ export default function SnapAccountDetailPage() {
{isInstalled && (
history.push(
`${SNAPS_VIEW_ROUTE}/${encodeURIComponent(
diff --git a/ui/pages/keyring-snaps/snap-card/snap-card.tsx b/ui/pages/keyring-snaps/snap-card/snap-card.tsx
index b7040bb7e..c3cc88bb3 100644
--- a/ui/pages/keyring-snaps/snap-card/snap-card.tsx
+++ b/ui/pages/keyring-snaps/snap-card/snap-card.tsx
@@ -4,7 +4,7 @@ import ConfigureSnapPopup, {
ConfigureSnapPopupType,
} from '../../../components/app/configure-snap-popup';
import {
- BUTTON_VARIANT,
+ ButtonVariant,
Box,
Button,
Icon,
@@ -91,7 +91,7 @@ export default function SnapCard({
{isInstalled ? (
setShowConfigPopover(true)}
>
{t('snapConfigure')}
@@ -99,7 +99,7 @@ export default function SnapCard({
) : (
{
history.push(`/add-snap-account/${id}`);
}}
diff --git a/ui/pages/settings/security-tab/security-tab.component.js b/ui/pages/settings/security-tab/security-tab.component.js
index 63930d873..5452f7b9b 100644
--- a/ui/pages/settings/security-tab/security-tab.component.js
+++ b/ui/pages/settings/security-tab/security-tab.component.js
@@ -21,9 +21,9 @@ import {
} from '../../../../shared/lib/ui-utils';
import SRPQuiz from '../../../components/app/srp-quiz-modal/SRPQuiz';
import {
+ Button,
BUTTON_SIZES,
Box,
- Button,
Text,
} from '../../../components/component-library';
import TextField from '../../../components/ui/text-field';
diff --git a/ui/pages/swaps/prepare-swap-page/smart-transactions-popover.stories.tsx b/ui/pages/swaps/prepare-swap-page/smart-transactions-popover.stories.tsx
index bb2791fd7..5b84bce1e 100644
--- a/ui/pages/swaps/prepare-swap-page/smart-transactions-popover.stories.tsx
+++ b/ui/pages/swaps/prepare-swap-page/smart-transactions-popover.stories.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import { StoryFn, Meta } from '@storybook/react';
import { useArgs } from '@storybook/client-api';
-import { BUTTON_VARIANT, Button } from '../../../components/component-library';
+import { ButtonVariant, Button } from '../../../components/component-library';
import SmartTransactionPopover from './smart-transactions-popover';
export default {
@@ -20,7 +20,7 @@ export const DefaultStory: StoryFn = () => {
return (
<>
-
+
Open modal
{isShowingModal && (
diff --git a/ui/pages/swaps/prepare-swap-page/smart-transactions-popover.tsx b/ui/pages/swaps/prepare-swap-page/smart-transactions-popover.tsx
index 38484fab4..5aa8cb011 100644
--- a/ui/pages/swaps/prepare-swap-page/smart-transactions-popover.tsx
+++ b/ui/pages/swaps/prepare-swap-page/smart-transactions-popover.tsx
@@ -16,7 +16,7 @@ import {
Text,
Box,
Button,
- BUTTON_VARIANT,
+ ButtonVariant,
} from '../../../components/component-library';
interface Props {
@@ -80,7 +80,7 @@ export default function SmartTransactionsPopover({
@@ -89,7 +89,7 @@ export default function SmartTransactionsPopover({