From 528c5e203d0909e01c9c624f9b73b3a8f1a34d19 Mon Sep 17 00:00:00 2001 From: Michal Date: Fri, 2 Aug 2024 23:17:27 +0100 Subject: [PATCH] Rename ChainWarning to GradientWarning --- .../.storybook/storybook.requires.js | 2 +- ...tories.tsx => GradientWarning.stories.tsx} | 6 ++-- .../{ChainWarning.tsx => GradientWarning.tsx} | 2 +- .../Discover/common/ChainDAppsWarning.tsx | 4 +-- .../Staking/PoolDetails/PoolDetailScreen.tsx | 4 +-- .../Staking/PoolDetails/PoolDetailScreen.json | 28 +++++++++---------- 6 files changed, 23 insertions(+), 23 deletions(-) rename apps/wallet-mobile/src/components/ChainWarning/{ChainWarning.stories.tsx => GradientWarning.stories.tsx} (66%) rename apps/wallet-mobile/src/components/ChainWarning/{ChainWarning.tsx => GradientWarning.tsx} (95%) diff --git a/apps/wallet-mobile/.storybook/storybook.requires.js b/apps/wallet-mobile/.storybook/storybook.requires.js index 93372904bf..53d78e5aa9 100644 --- a/apps/wallet-mobile/.storybook/storybook.requires.js +++ b/apps/wallet-mobile/.storybook/storybook.requires.js @@ -62,7 +62,7 @@ const getStories = () => { "./src/components/Boundary/Boundary.stories.tsx": require("../src/components/Boundary/Boundary.stories.tsx"), "./src/components/Button/Button.stories.tsx": require("../src/components/Button/Button.stories.tsx"), "./src/components/CameraCodeScanner/CameraCodeScanner.stories.tsx": require("../src/components/CameraCodeScanner/CameraCodeScanner.stories.tsx"), - "./src/components/ChainWarning/ChainWarning.stories.tsx": require("../src/components/ChainWarning/ChainWarning.stories.tsx"), + "./src/components/ChainWarning/GradientWarning.stories.tsx": require("../src/components/ChainWarning/GradientWarning.stories.tsx"), "./src/components/Checkbox/Checkbox.stories.tsx": require("../src/components/Checkbox/Checkbox.stories.tsx"), "./src/components/ConfirmTx/ConfirmTx.stories.tsx": require("../src/components/ConfirmTx/ConfirmTx.stories.tsx"), "./src/components/ConfirmTx/Dialog.stories.tsx": require("../src/components/ConfirmTx/Dialog.stories.tsx"), diff --git a/apps/wallet-mobile/src/components/ChainWarning/ChainWarning.stories.tsx b/apps/wallet-mobile/src/components/ChainWarning/GradientWarning.stories.tsx similarity index 66% rename from apps/wallet-mobile/src/components/ChainWarning/ChainWarning.stories.tsx rename to apps/wallet-mobile/src/components/ChainWarning/GradientWarning.stories.tsx index ed88ad42cf..3d4bfe9f26 100644 --- a/apps/wallet-mobile/src/components/ChainWarning/ChainWarning.stories.tsx +++ b/apps/wallet-mobile/src/components/ChainWarning/GradientWarning.stories.tsx @@ -2,10 +2,10 @@ import {action} from '@storybook/addon-actions' import {storiesOf} from '@storybook/react-native' import * as React from 'react' -import {ChainWarning} from './ChainWarning' +import {GradientWarning} from './GradientWarning' -storiesOf('ChainWarning', module).add('Default', () => ( - +storiesOf('GradientWarning', module).add('Default', () => ( + )) const description = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.` diff --git a/apps/wallet-mobile/src/components/ChainWarning/ChainWarning.tsx b/apps/wallet-mobile/src/components/ChainWarning/GradientWarning.tsx similarity index 95% rename from apps/wallet-mobile/src/components/ChainWarning/ChainWarning.tsx rename to apps/wallet-mobile/src/components/ChainWarning/GradientWarning.tsx index 51c9ee0aef..3e0b2a4ef1 100644 --- a/apps/wallet-mobile/src/components/ChainWarning/ChainWarning.tsx +++ b/apps/wallet-mobile/src/components/ChainWarning/GradientWarning.tsx @@ -13,7 +13,7 @@ type Props = { onClose?: () => void } -export const ChainWarning = ({title, description, onClose}: Props) => { +export const GradientWarning = ({title, description, onClose}: Props) => { const {isDark, color} = useTheme() const styles = useStyles() diff --git a/apps/wallet-mobile/src/features/Discover/common/ChainDAppsWarning.tsx b/apps/wallet-mobile/src/features/Discover/common/ChainDAppsWarning.tsx index f768455def..d944d6bd4d 100644 --- a/apps/wallet-mobile/src/features/Discover/common/ChainDAppsWarning.tsx +++ b/apps/wallet-mobile/src/features/Discover/common/ChainDAppsWarning.tsx @@ -3,7 +3,7 @@ import {Chain} from '@yoroi/types' import * as React from 'react' import {useQuery} from 'react-query' -import {ChainWarning} from '../../../components/ChainWarning/ChainWarning' +import {GradientWarning} from '../../../components/ChainWarning/GradientWarning' import {useSelectedWallet} from '../../WalletManager/common/hooks/useSelectedWallet' import {useWalletManager} from '../../WalletManager/context/WalletManagerProvider' import {useStrings} from './useStrings' @@ -23,7 +23,7 @@ export const ChainDAppsWarning = () => { if (isMainnet || hasAccepted) return null return ( - return ( <> - + diff --git a/apps/wallet-mobile/translations/messages/src/legacy/Staking/PoolDetails/PoolDetailScreen.json b/apps/wallet-mobile/translations/messages/src/legacy/Staking/PoolDetails/PoolDetailScreen.json index 65bcacf19f..8042daffe4 100644 --- a/apps/wallet-mobile/translations/messages/src/legacy/Staking/PoolDetails/PoolDetailScreen.json +++ b/apps/wallet-mobile/translations/messages/src/legacy/Staking/PoolDetails/PoolDetailScreen.json @@ -6,12 +6,12 @@ "start": { "line": 90, "column": 12, - "index": 2569 + "index": 2578 }, "end": { "line": 93, "column": 3, - "index": 2683 + "index": 2692 } }, { @@ -21,12 +21,12 @@ "start": { "line": 94, "column": 8, - "index": 2693 + "index": 2702 }, "end": { "line": 97, "column": 3, - "index": 2752 + "index": 2761 } }, { @@ -36,12 +36,12 @@ "start": { "line": 98, "column": 12, - "index": 2766 + "index": 2775 }, "end": { "line": 101, "column": 3, - "index": 2853 + "index": 2862 } }, { @@ -51,12 +51,12 @@ "start": { "line": 102, "column": 10, - "index": 2865 + "index": 2874 }, "end": { "line": 105, "column": 3, - "index": 2959 + "index": 2968 } }, { @@ -66,12 +66,12 @@ "start": { "line": 106, "column": 17, - "index": 2978 + "index": 2987 }, "end": { "line": 109, "column": 3, - "index": 3081 + "index": 3090 } }, { @@ -81,12 +81,12 @@ "start": { "line": 110, "column": 19, - "index": 3102 + "index": 3111 }, "end": { "line": 113, "column": 3, - "index": 3233 + "index": 3242 } }, { @@ -96,12 +96,12 @@ "start": { "line": 114, "column": 18, - "index": 3253 + "index": 3262 }, "end": { "line": 118, "column": 3, - "index": 3462 + "index": 3471 } } ] \ No newline at end of file