Skip to content

Commit

Permalink
Merge pull request #6 from lidofinance/develop
Browse files Browse the repository at this point in the history
Develop to main
  • Loading branch information
DiRaiks authored Aug 9, 2023
2 parents ce7c837 + ab9cdbe commit d1d9910
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches:
- develop
paths-ignore:
- ".github/**"
- "test/**"
- '.github/**'
- 'test/**'

permissions:
contents: read
Expand All @@ -26,9 +26,9 @@ jobs:
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TARGET_WORKFLOW: "deploy_testnet_staking_widget_ts.yaml"
TARGET: "develop"
TARGET_REPO: 'lidofinance/infra-mainnet'
TARGET_WORKFLOW: 'deploy_testnet_ethereum_staking_widget.yaml'
TARGET: 'develop'

tests:
needs: deploy
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TAG: "${{ github.event.release.tag_name }}"
TARGET_WORKFLOW: "build_critical_staking_widget_ts.yaml"
TARGET_REPO: 'lidofinance/infra-mainnet'
TAG: '${{ github.event.release.tag_name }}'
TARGET_WORKFLOW: 'build_critical_ethereum_staking_widget.yaml'
10 changes: 5 additions & 5 deletions .github/workflows/ci-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches:
- main
paths-ignore:
- ".github/**"
- "test/**"
- '.github/**'
- 'test/**'

permissions:
contents: read
Expand All @@ -26,9 +26,9 @@ jobs:
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TARGET_WORKFLOW: "deploy_staging_critical_staking_widget_ts.yaml"
TARGET: "main"
TARGET_REPO: 'lidofinance/infra-mainnet'
TARGET_WORKFLOW: 'deploy_staging_critical_ethereum_staking_widget.yaml'
TARGET: 'main'

tests:
needs: deploy
Expand Down
11 changes: 9 additions & 2 deletions shared/components/token-to-wallet/token-to-wallet.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Tooltip } from '@lidofinance/lido-ui';
import { ToastInfo, Tooltip } from '@lidofinance/lido-ui';
import { useTokenToWallet } from '@lido-sdk/react';
import { TokenToWalletStyle } from './styles';

Expand All @@ -12,9 +12,16 @@ export const TokenToWallet: TokenToWalletComponent = (props) => {

if (!addToken) return null;

const onClickHandler = async () => {
const result = await addToken();
if (!result) return;

ToastInfo('Tokens were successfully added to your wallet', {});
};

return (
<Tooltip placement="bottomLeft" title="Add tokens to wallet">
<TokenToWalletStyle tabIndex={-1} onClick={addToken} {...rest} />
<TokenToWalletStyle tabIndex={-1} onClick={onClickHandler} {...rest} />
</Tooltip>
);
};

0 comments on commit d1d9910

Please sign in to comment.