Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Nov 22, 2023
1 parent 974033f commit bdde9ee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/swapv2/LimitOrder/Modals/CancelButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,7 @@ const CancelButtons = ({
</ButtonWrapper>
)

const propsGasless = {
color: cancelType === CancelOrderType.GAS_LESS_CANCEL ? theme.primary : undefined,
height: '40px',
width: '100%',
}
const propsGasless = { height: '40px', width: '100%' }
const propsHardCancel = { style: { height: '40px', width: '100%' }, disabled: disabledHardCancel }

if (isCountDown)
Expand All @@ -181,7 +177,7 @@ const CancelButtons = ({
isEdit={isEdit}
gasAmountDisplay={gasAmountDisplay}
buttonGasless={
<ButtonPrimary {...propsGasless} color={undefined} onClick={onDismiss}>
<ButtonPrimary {...propsGasless} onClick={onDismiss}>
<Check size={18} />
&nbsp;
<Trans>Close</Trans>
Expand Down Expand Up @@ -217,6 +213,7 @@ const CancelButtons = ({
>
<ButtonOutlined
{...propsGasless}
color={cancelType === CancelOrderType.GAS_LESS_CANCEL ? theme.primary : undefined}
onClick={() => onSetType(CancelOrderType.GAS_LESS_CANCEL)}
$disabled={disabledGasLessCancel}
disabled={disabledGasLessCancel}
Expand Down

0 comments on commit bdde9ee

Please sign in to comment.