Skip to content

Commit

Permalink
fix: add watch token to faucet on success
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Jul 9, 2024
1 parent af8ae1c commit b9a5009
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/staking/app/faucet/AuthModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Input } from '@session/ui/ui/input';
import { useTranslations } from 'next-intl';
import ActionModule, { ActionModuleDivider } from '../stake/ActionModule';

import { WalletAddTokenWithLocales } from '@/components/WalletAddTokenWithLocales';
import { FAUCET, FAUCET_ERROR } from '@/lib/constants';
import { ButtonDataTestId } from '@/testing/data-test-ids';
import { zodResolver } from '@hookform/resolvers/zod';
Expand Down Expand Up @@ -381,6 +382,13 @@ export const AuthModule = () => {
})}
</p>
) : null}

{formState === FORM_STATE.SUCCESS ? (
<>
<p>{dictionary('watchSENTInfo')}</p>
<WalletAddTokenWithLocales rounded="md" size="md" variant="outline" />
</>
) : null}
</ActionModule>
);
};
2 changes: 2 additions & 0 deletions apps/staking/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@
"transactionHash": "Transaction Hash: {hash}",
"transactionHashDescription": "Transaction hash of the faucet transaction.",
"haveSomeMore": "Alright then, you can have some more",
"watchSENTInfo": "You may need to add {tokenSymbol} to your wallet to make it show up, click the button below to add it.",
"watchSENTButtonText": "Add {tokenSymbol} to wallet",
"copyTransactionHash": "Copy Transaction Hash",
"copyTransactionHashSuccessToast": "Copied Transaction Hash to clipboard!"
}
Expand Down

0 comments on commit b9a5009

Please sign in to comment.