Skip to content

Commit

Permalink
Merge pull request #28 from bnb-chain/fix/meson
Browse files Browse the repository at this point in the history
Fix/meson
  • Loading branch information
Halibao-Lala authored Oct 21, 2024
2 parents 03c7a9d + 2b888d5 commit 4d549b0
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export const CBridgeOption = () => {
/>
<AllowedSendAmount
position={'static'}
zIndex={2}
isError={isAllowSendError}
allowedSendAmount={
!!Number(cBridgeAllowedAmt.min) && !!Number(cBridgeAllowedAmt.max) && selectedToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const MesonOption = () => {
{/* <AllowedSendAmount
position={'static'}
isError={isAllowSendError}
zIndex={2}
allowedSendAmount={allowedSendAmount}
/> */}
<OtherRouteError bridgeType={'meson'} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const StarGateOption = () => {
<AllowedSendAmount
position={'static'}
isError={isAllowSendError}
zIndex={2}
allowedSendAmount={allowedSendAmount}
/>
{!isAllowSendError && <OtherRouteError bridgeType={'stargate'} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function ToAccount(props: FlexProps) {
return null;
}

const isInvalid = (!isAvailableAccount && !!toAccount.address) || isTronContract === false;
const isInvalid = (!isAvailableAccount && !!toAccount.address) || isTronContract === true;

const onCheckboxChange = (e: React.ChangeEvent<HTMLInputElement>) => {
if (e.target.checked === true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ export const OtherRouteError = ({ bridgeType }: OtherRouteErrorProps) => {

const routeError = useAppSelector((state) => state.transfer.routeError);
return routeError && routeError[bridgeType] ? (
<Box
position={'static'}
zIndex={2}
color={theme.colors[colorMode].route.warning}
lineHeight={'16px'}
>
<Box position={'static'} color={theme.colors[colorMode].route.warning} lineHeight={'16px'}>
<InfoCircleIcon display={'inline'} w={'16px'} h={'16px'} />
<Box ml={'4px'} display={'inline'} lineHeight={'16px'} fontSize={'14px'} fontWeight={400}>
{routeError[bridgeType]}
Expand Down

0 comments on commit 4d549b0

Please sign in to comment.