fix(currency-dropdown): rename price to deposit amount

This commit is contained in:
RadoslavDimchev 2024-04-19 17:26:02 +03:00 committed by Emil Ivanichkov
parent 21bfa611da
commit 15ff398de1
4 changed files with 5 additions and 5 deletions

View File

@ -16,6 +16,6 @@ type Story = StoryObj<typeof meta>
export const Default: Story = {
args: {
price: 1,
depositAmount: 1,
},
}

View File

@ -9,10 +9,10 @@ import { formatNumbersWithComa } from '../../utilities'
import ChevronIcon from './ChevronIcon'
type CurrencyDropdownProps = {
price: number
depositAmount: number
}
const CurrencyDropdown = ({ price }: CurrencyDropdownProps) => {
const CurrencyDropdown = ({ depositAmount }: CurrencyDropdownProps) => {
const [isOpen, setIsOpen] = useState(false)
const dispatch = useDispatch()
const currency = useSelector((state: RootState) => state.currency)

View File

@ -60,7 +60,7 @@ const ValidatorsMenuWithPrice = ({
</Text>
</Stack>
</YStack>
<CurrencyDropdown price={totalETH} />
<CurrencyDropdown depositAmount={totalETH} />
</XStack>
</ResponsiveStack>
)

View File

@ -44,7 +44,7 @@ const DepositValidator = () => {
onChangeText={changeDepositAmountHandler}
/>
</YStack>
<CurrencyDropdown price={Number(depositAmount)} />
<CurrencyDropdown depositAmount={Number(depositAmount)} />
</XStack>
)
}