fix: name of copy pasted recovery phrase notification

This commit is contained in:
RadoslavDimchev 2024-01-26 10:16:56 +02:00 committed by Radoslav Dimchev
parent bafa31b1f9
commit cbcbb3195f
2 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ import {
setValidWords, setValidWords,
} from '../../redux/ValidatorOnboarding/KeyGeneration/slice' } from '../../redux/ValidatorOnboarding/KeyGeneration/slice'
import { useWindowSize } from '../../hooks/useWindowSize' import { useWindowSize } from '../../hooks/useWindowSize'
import CopyPastedNotification from './CopyPastedNotification' import CopyPastedRecoveryPhrase from './CopyPastedRecoveryPhrase'
const ContinueButton = () => { const ContinueButton = () => {
const windowSize = useWindowSize() const windowSize = useWindowSize()
@ -139,7 +139,7 @@ const ContinueButton = () => {
return ( return (
<YStack style={{ width: '100%' }}> <YStack style={{ width: '100%' }}>
{windowSize.width < 1155 && ( {windowSize.width < 1155 && (
<CopyPastedNotification isSmallScreen={true} /> <CopyPastedRecoveryPhrase isSmallScreen={true} />
)} )}
<XStack <XStack
style={{ style={{
@ -150,7 +150,7 @@ const ContinueButton = () => {
marginTop: '12px', marginTop: '12px',
}} }}
> >
{windowSize.width >= 1155 && <CopyPastedNotification />} {windowSize.width >= 1155 && <CopyPastedRecoveryPhrase />}
{isActivationValScreen && ( {isActivationValScreen && (
<LinkWithArrow <LinkWithArrow
text="Skip to Dashboard" text="Skip to Dashboard"

View File

@ -5,13 +5,13 @@ import { useSelector } from 'react-redux'
import { RootState } from '../../redux/store' import { RootState } from '../../redux/store'
type CopyPastedNotificationProps = { type CopyPastedRecoveryPhraseProps = {
isSmallScreen?: boolean isSmallScreen?: boolean
} }
const CopyPastedNotification = ({ const CopyPastedRecoveryPhrase = ({
isSmallScreen, isSmallScreen,
}: CopyPastedNotificationProps) => { }: CopyPastedRecoveryPhraseProps) => {
const isCopyPastedPhrase = useSelector( const isCopyPastedPhrase = useSelector(
(state: RootState) => state.keyGeneration.isCopyPastedPhrase, (state: RootState) => state.keyGeneration.isCopyPastedPhrase,
) )
@ -37,4 +37,4 @@ const CopyPastedNotification = ({
) )
} }
export default CopyPastedNotification export default CopyPastedRecoveryPhrase