@transferwise/components 45.23.0 → 45.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -8777,9 +8777,6 @@ const Nudge = ({
8777
8777
  id,
8778
8778
  className
8779
8779
  }) => {
8780
- const {
8781
- isModern
8782
- } = componentsTheming.useTheme();
8783
8780
  const [isDismissed, setIsDismissed] = React.useState(false);
8784
8781
  const [isMounted, setIsMounted] = React.useState(false);
8785
8782
  const handleOnDismiss = () => {
@@ -8816,7 +8813,7 @@ const Nudge = ({
8816
8813
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
8817
8814
  className: classNames__default.default('wds-nudge', className),
8818
8815
  id: id,
8819
- children: [isModern ? !!mediaName && /*#__PURE__*/jsxRuntime.jsx("div", {
8816
+ children: [!!mediaName && /*#__PURE__*/jsxRuntime.jsx("div", {
8820
8817
  className: "wds-nudge-media",
8821
8818
  children: /*#__PURE__*/jsxRuntime.jsx(art.Illustration, {
8822
8819
  name: mediaName,
@@ -8825,20 +8822,14 @@ const Nudge = ({
8825
8822
  disablePadding: true,
8826
8823
  alt: ""
8827
8824
  })
8828
- }) : /*#__PURE__*/jsxRuntime.jsx("div", {
8829
- className: "wds-nudge-media",
8830
- children: media
8831
8825
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
8832
8826
  className: "wds-nudge-container",
8833
8827
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
8834
8828
  className: "wds-nudge-content",
8835
- children: [isModern ? /*#__PURE__*/jsxRuntime.jsx(Body, {
8829
+ children: [/*#__PURE__*/jsxRuntime.jsx(Body, {
8836
8830
  type: exports.Typography.BODY_LARGE,
8837
8831
  className: classNames__default.default('wds-nudge-body'),
8838
8832
  children: title
8839
- }) : /*#__PURE__*/jsxRuntime.jsx("div", {
8840
- className: "wds-nudge-title",
8841
- children: title
8842
8833
  }), link && /*#__PURE__*/jsxRuntime.jsx(Link, {
8843
8834
  href: href,
8844
8835
  type: exports.Typography.LINK_LARGE,