Commit 8a4e07e6 authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by Connor McEwen

fix: update font-weight values to match spec (#4863)

parent 7f4413c7
...@@ -694,12 +694,12 @@ export default function Swap() { ...@@ -694,12 +694,12 @@ export default function Swap() {
properties={{ received_swap_quote: getIsValidSwapQuote(trade, tradeState, swapInputError) }} properties={{ received_swap_quote: getIsValidSwapQuote(trade, tradeState, swapInputError) }}
element={ElementName.CONNECT_WALLET_BUTTON} element={ElementName.CONNECT_WALLET_BUTTON}
> >
<ButtonLight onClick={toggleWalletModal} redesignFlag={redesignFlagEnabled}> <ButtonLight onClick={toggleWalletModal} redesignFlag={redesignFlagEnabled} fontWeight={600}>
<Trans>Connect Wallet</Trans> <Trans>Connect Wallet</Trans>
</ButtonLight> </ButtonLight>
</TraceEvent> </TraceEvent>
) : showWrap ? ( ) : showWrap ? (
<ButtonPrimary disabled={Boolean(wrapInputError)} onClick={onWrap}> <ButtonPrimary disabled={Boolean(wrapInputError)} onClick={onWrap} fontWeight={600}>
{wrapInputError ? ( {wrapInputError ? (
<WrapErrorText wrapInputError={wrapInputError} /> <WrapErrorText wrapInputError={wrapInputError} />
) : wrapType === WrapType.WRAP ? ( ) : wrapType === WrapType.WRAP ? (
...@@ -718,6 +718,7 @@ export default function Swap() { ...@@ -718,6 +718,7 @@ export default function Swap() {
<AutoRow style={{ flexWrap: 'nowrap', width: '100%' }}> <AutoRow style={{ flexWrap: 'nowrap', width: '100%' }}>
<AutoColumn style={{ width: '100%' }} gap="12px"> <AutoColumn style={{ width: '100%' }} gap="12px">
<ButtonConfirmed <ButtonConfirmed
fontWeight={600}
onClick={handleApprove} onClick={handleApprove}
disabled={approveTokenButtonDisabled} disabled={approveTokenButtonDisabled}
width="100%" width="100%"
...@@ -780,7 +781,7 @@ export default function Swap() { ...@@ -780,7 +781,7 @@ export default function Swap() {
} }
error={isValid && priceImpactSeverity > 2} error={isValid && priceImpactSeverity > 2}
> >
<Text fontSize={16} fontWeight={500}> <Text fontSize={16} fontWeight={600}>
{priceImpactTooHigh ? ( {priceImpactTooHigh ? (
<Trans>High Price Impact</Trans> <Trans>High Price Impact</Trans>
) : trade && priceImpactSeverity > 2 ? ( ) : trade && priceImpactSeverity > 2 ? (
...@@ -811,7 +812,7 @@ export default function Swap() { ...@@ -811,7 +812,7 @@ export default function Swap() {
disabled={!isValid || routeIsSyncing || routeIsLoading || priceImpactTooHigh || !!swapCallbackError} disabled={!isValid || routeIsSyncing || routeIsLoading || priceImpactTooHigh || !!swapCallbackError}
error={isValid && priceImpactSeverity > 2 && !swapCallbackError} error={isValid && priceImpactSeverity > 2 && !swapCallbackError}
> >
<Text fontSize={20} fontWeight={500}> <Text fontSize={20} fontWeight={600}>
{swapInputError ? ( {swapInputError ? (
swapInputError swapInputError
) : routeIsSyncing || routeIsLoading ? ( ) : routeIsSyncing || routeIsLoading ? (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment