Skip to content

Commit

Permalink
🧹 Fix some React dom validation warnings (#4845)
Browse files Browse the repository at this point in the history
Fix some React dom validation warnings
  • Loading branch information
thesan authored May 1, 2024
1 parent 0aa19fa commit 167a71c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function TransferSignModal({ onClose, from, amount, to, service, transact
<ModalBody>
<SignTransferContainer>
<Row>
<TextMedium margin="xl">
<TextMedium margin="xl" as="div">
You are transferring <TokenValue value={amount} /> stake from “{from.name}” account to “{to.name}{' '}
destination.
</TextMedium>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import React, { Fragment } from 'react'
import styled, { css } from 'styled-components'

import { asStepsToRender, StepperStep, StepToRender } from '@/common/components/Stepper/types'
Expand All @@ -16,15 +16,15 @@ export const HorizontalStepper = ({ steps }: HorizontalStepperProps) => {
return (
<HorizontalStepperWrapper>
{stepsToRender.map((step, index) => (
<>
<Step step={step} key={`horizontal-stepper-${index}`}>
<Fragment key={`horizontal-stepper-${index}`}>
<Step step={step}>
<StepCircle>{step.isPast ? <CheckboxIcon /> : index + 1}</StepCircle>
<StepBody>
<StepTitle>{step.title}</StepTitle>
</StepBody>
</Step>
{index < stepsToRender.length - 1 && <Separator />}
</>
</Fragment>
))}
</HorizontalStepperWrapper>
)
Expand Down

0 comments on commit 167a71c

Please sign in to comment.