Skip to content

Commit

Permalink
Merge pull request #58 from lidofinance/develop
Browse files Browse the repository at this point in the history
Develop to main
  • Loading branch information
itaven authored Sep 20, 2023
2 parents 99b0c27 + ddee47c commit f25dfb1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 123 deletions.
44 changes: 0 additions & 44 deletions shared/banners/balancer/balancer.tsx

This file was deleted.

1 change: 0 additions & 1 deletion shared/banners/balancer/index.ts

This file was deleted.

21 changes: 0 additions & 21 deletions shared/banners/balancer/styles.ts

This file was deleted.

40 changes: 0 additions & 40 deletions shared/banners/balancer/types.ts

This file was deleted.

13 changes: 0 additions & 13 deletions shared/banners/balancer/useBalancer.ts

This file was deleted.

1 change: 0 additions & 1 deletion shared/banners/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './curve';
export * from './balancer';
export * from './modal-pool-banners';
3 changes: 1 addition & 2 deletions shared/banners/modal-pool-banners/modal-pool-banners.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { trackEvent } from '@lidofinance/analytics-matomo';
import { Curve, Balancer } from 'shared/banners';
import { Curve } from 'shared/banners';
import { MATOMO_CLICK_EVENTS } from 'config';

import { TextStyles, DescStyles, ButtonLinkWrap, ButtonStyled } from './styles';
Expand All @@ -25,7 +25,6 @@ export const ModalPoolBanners = () => {
</DescStyles>
</TextStyles>
<Curve />
<Balancer />
<ButtonLinkWrap {...linkProps} onClick={linkClickHandler}>
<ButtonStyled fullwidth color="success">
Explore more DeFi options
Expand Down
8 changes: 7 additions & 1 deletion shared/hook-form/controls/token-select-hook-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const TokenSelectHookForm = ({
<SelectIcon
{...field}
icon={iconsMap[field.value]}
data-testid="drop-down"
error={isValidationErrorTypeValidate(errors[errorField]?.type)}
onChange={(value: TOKENS) => {
setValue(fieldName, value, {
Expand All @@ -67,7 +68,12 @@ export const TokenSelectHookForm = ({
}}
>
{options.map(({ label, token }) => (
<Option key={token} leftDecorator={iconsMap[token]} value={token}>
<Option
key={token}
leftDecorator={iconsMap[token]}
value={token}
data-testid={token}
>
{label || getTokenDisplayName(token)}
</Option>
))}
Expand Down

0 comments on commit f25dfb1

Please sign in to comment.