mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 10:30:31 +00:00
fix(currency-dropdown): rename price to deposit amount
This commit is contained in:
parent
21bfa611da
commit
15ff398de1
@ -16,6 +16,6 @@ type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
price: 1,
|
||||
depositAmount: 1,
|
||||
},
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -60,7 +60,7 @@ const ValidatorsMenuWithPrice = ({
|
||||
</Text>
|
||||
</Stack>
|
||||
</YStack>
|
||||
<CurrencyDropdown price={totalETH} />
|
||||
<CurrencyDropdown depositAmount={totalETH} />
|
||||
</XStack>
|
||||
</ResponsiveStack>
|
||||
)
|
||||
|
@ -44,7 +44,7 @@ const DepositValidator = () => {
|
||||
onChangeText={changeDepositAmountHandler}
|
||||
/>
|
||||
</YStack>
|
||||
<CurrencyDropdown price={Number(depositAmount)} />
|
||||
<CurrencyDropdown depositAmount={Number(depositAmount)} />
|
||||
</XStack>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user