Skip to content

Commit

Permalink
Rename ChainWarning to GradientWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript committed Aug 2, 2024
1 parent 7657dd9 commit 528c5e2
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion apps/wallet-mobile/.storybook/storybook.requires.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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', () => (
<ChainWarning title="Test Title" description={description} onClose={action('onClose')} />
storiesOf('GradientWarning', module).add('Default', () => (
<GradientWarning title="Test Title" description={description} onClose={action('onClose')} />
))

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.`
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -23,7 +23,7 @@ export const ChainDAppsWarning = () => {

if (isMainnet || hasAccepted) return null
return (
<ChainWarning
<GradientWarning
title={strings.testnetWarningTitle}
onClose={handleOnClose}
description={strings.testnetWarningDescription}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {StyleSheet} from 'react-native'
import {useQuery} from 'react-query'

import {Button, Spacer, TextInput} from '../../../components'
import {ChainWarning} from '../../../components/ChainWarning/ChainWarning'
import {GradientWarning} from '../../../components/ChainWarning/GradientWarning'
import {isValidPoolIdOrHash, normalizeToPoolHash} from '../../../yoroi-wallets/cardano/delegationUtils'

type Props = {
Expand All @@ -29,7 +29,7 @@ export const PoolDetailScreen = ({onPressDelegate, disabled = false}: Props) =>

return (
<>
<ChainWarning title={strings.disclaimerTitle} description={strings.disclaimerText} />
<GradientWarning title={strings.disclaimerTitle} description={strings.disclaimerText} />

<Spacer height={24} />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"start": {
"line": 90,
"column": 12,
"index": 2569
"index": 2578
},
"end": {
"line": 93,
"column": 3,
"index": 2683
"index": 2692
}
},
{
Expand All @@ -21,12 +21,12 @@
"start": {
"line": 94,
"column": 8,
"index": 2693
"index": 2702
},
"end": {
"line": 97,
"column": 3,
"index": 2752
"index": 2761
}
},
{
Expand All @@ -36,12 +36,12 @@
"start": {
"line": 98,
"column": 12,
"index": 2766
"index": 2775
},
"end": {
"line": 101,
"column": 3,
"index": 2853
"index": 2862
}
},
{
Expand All @@ -51,12 +51,12 @@
"start": {
"line": 102,
"column": 10,
"index": 2865
"index": 2874
},
"end": {
"line": 105,
"column": 3,
"index": 2959
"index": 2968
}
},
{
Expand All @@ -66,12 +66,12 @@
"start": {
"line": 106,
"column": 17,
"index": 2978
"index": 2987
},
"end": {
"line": 109,
"column": 3,
"index": 3081
"index": 3090
}
},
{
Expand All @@ -81,12 +81,12 @@
"start": {
"line": 110,
"column": 19,
"index": 3102
"index": 3111
},
"end": {
"line": 113,
"column": 3,
"index": 3233
"index": 3242
}
},
{
Expand All @@ -96,12 +96,12 @@
"start": {
"line": 114,
"column": 18,
"index": 3253
"index": 3262
},
"end": {
"line": 118,
"column": 3,
"index": 3462
"index": 3471
}
}
]

0 comments on commit 528c5e2

Please sign in to comment.