Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
dmy147 committed Dec 18, 2024
1 parent eb9ea2b commit b739877
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/ui/views/Bridge/Component/BridgeContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export const BridgeContent = () => {
value={amount}
onInputChange={handleAmountChange}
excludeChains={toChain ? [toChain] : undefined}
inSufficient={inSufficient}
/>
<BridgeToken
type="to"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/Bridge/Component/BridgeQuoteItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const BridgeQuoteItem = (props: QuoteItemProps) => {
'rounded-tl-[4px] rounded-br-[4px] px-[6px] py-[1px]',
'text-12 font-medium',
props.isBestQuote
? 'text-r-green-default bg-r-green-light'
? 'text-r-blue-default bg-light-r-blue-light2'
: 'text-r-red-default bg-r-red-light'
)}
>
Expand Down
3 changes: 3 additions & 0 deletions src/ui/views/Bridge/Component/BridgeToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const BridgeToken = ({
fromChainId,
fromTokenId,
noQuote,
inSufficient,
}: {
type?: 'from' | 'to';
token?: TokenItem;
Expand All @@ -80,6 +81,7 @@ export const BridgeToken = ({
onChangeChain: (chain: CHAINS_ENUM) => void;
value?: string | number;
onInputChange?: (v: string) => void;
inSufficient?: boolean;

valueLoading?: boolean;
fromChainId?: string;
Expand Down Expand Up @@ -238,6 +240,7 @@ export const BridgeToken = ({
/>
) : (
<StyledInput
className={clsx(inSufficient && 'text-rabby-red-default')}
placeholder={showNoQuote ? t('page.bridge.no-quote') : '0'}
value={value}
onChange={inputChange}
Expand Down
6 changes: 3 additions & 3 deletions src/ui/views/Swap/Component/QuoteItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ const ItemWrapper = styled.div`
font-weight: 500;
font-size: 13px;
font-weight: 500;
color: #27c193;
color: var(--r-blue-default, #7084ff);
&.red {
color: #ec5151;
color: var(--r-red-default, #e34935);
}
}
`;
Expand Down Expand Up @@ -545,7 +545,7 @@ export const DexQuoteItem = (
className={clsx(
'absolute top-[-1px] left-[-1px] ',
'px-6 py-[1px] rounded-tl-[4px] rounded-br-[4px]',
props.isBestQuote ? 'bg-r-green-light' : 'bg-r-red-light',
props.isBestQuote ? 'bg-r-blue-light2' : 'bg-r-red-light',
'text-r-red-default'
)}
>
Expand Down

0 comments on commit b739877

Please sign in to comment.