Skip to content

Commit

Permalink
fix: remove fee title in increase fee form
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Jan 11, 2024
1 parent 77dc018 commit 0de3900
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/app/components/transaction/microblock-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function MicroblockLabel() {
In microblock
</styled.span>
<Tooltip label={inMicroblockMessage} placement="bottom">
<Box _hover={{ cursor: 'pointer' }} color="warning.label" height="10px" width="10px">
<Box _hover={{ cursor: 'pointer' }} color="warning.label">
<InfoIcon />
</Box>
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback, useMemo, useState } from 'react';

import { useField } from 'formik';
import { Flex, Stack, styled } from 'leather-styles/jsx';
import { Stack, styled } from 'leather-styles/jsx';

import { microStxToStx, stxToMicroStx } from '@app/common/money/unit-conversion';
import { ErrorLabel } from '@app/components/error-label';
Expand Down Expand Up @@ -44,26 +44,24 @@ export function IncreaseFeeField(props: IncreaseFeeFieldProps): React.JSX.Elemen
showReset={showResetMultiplier}
onSelectMultiplier={onSelectMultiplier}
/>
<Flex>
<styled.label display="block" textStyle="body.02" mb="space.02" htmlFor="fee">
Fee
</styled.label>
<styled.input
_focus={{ border: 'focus' }}
autoComplete="off"
bg="transparent"
border="default"
borderRadius="sm"
height="64px"
display="block"
p="space.04"
placeholder="Enter a custom fee"
ring="none"
textStyle="body.02"
width="100%"
{...field}
/>
</Flex>
<styled.label htmlFor="fee" display="none">
Fee
</styled.label>
<styled.input
_focus={{ border: 'focus' }}
autoComplete="off"
bg="transparent"
border="default"
borderRadius="sm"
height="64px"
display="block"
p="space.04"
placeholder="Enter a custom fee"
ring="none"
textStyle="body.02"
width="100%"
{...field}
/>
</Stack>
{meta.error && <ErrorLabel>{meta.error}</ErrorLabel>}
</>
Expand Down

0 comments on commit 0de3900

Please sign in to comment.