Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vidvidvid committed Nov 28, 2024
1 parent a2cd522 commit fcd2949
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/ui/app/_components/MaxDeposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ import { Button } from '@ui/components/ui/button';
import { Card, CardContent } from '@ui/components/ui/card';
import { Input } from '@ui/components/ui/input';

import { icErc20Abi } from '@ionicprotocol/sdk';
import TokenSelector from './stake/TokenSelector';

import { icErc20Abi } from '@ionicprotocol/sdk';

export interface IBal {
decimals: number;
value: bigint;
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/app/_components/stake/RewardDisplay.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Image from 'next/image';

import { base, mode, optimism } from 'viem/chains';

import { BaseSugarAddress } from '@ui/constants/baselp';
import { ModeSugarAddress } from '@ui/constants/lp';
import { OPSugarAddress } from '@ui/constants/oplp';
Expand Down
6 changes: 2 additions & 4 deletions packages/ui/app/stake/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ import {
} from '@ui/utils/getStakingTokens';
import { handleSwitchOriginChain } from '@ui/utils/NetworkChecker';

import RewardDisplay from '../_components/stake/RewardDisplay';

import MaxDeposit from '../_components/MaxDeposit';
import SliderComponent from '../_components/popup/Slider';
import ResultHandler from '../_components/ResultHandler';
import ClaimRewards from '../_components/stake/ClaimRewards';
import RewardDisplay from '../_components/stake/RewardDisplay';
import Toggle from '../_components/Toggle';

const NetworkSelector = dynamic(
Expand Down Expand Up @@ -71,14 +70,12 @@ export default function Stake() {
const querychain = searchParams.get('chain');
const queryToken = searchParams.get('token');
const chain = querychain ? querychain : String(chainId);
console.log('chain', chain);

const getDefaultToken = (chain: string) => {
return chain === String(mode.id) ? 'mode' : 'eth';
};
const selectedtoken =
queryToken ?? getDefaultToken(querychain ?? String(chainId));
console.log('selectedtoken', selectedtoken);

const stakingContractAddress = getStakingToContract(
+chain,
Expand Down Expand Up @@ -129,6 +126,7 @@ export default function Stake() {
if (shouldUpdate) {
router.push(`?${params.toString()}`, { scroll: false });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [chainId, querychain, router, searchParams]);

const { address, isConnected } = useAccount();
Expand Down

0 comments on commit fcd2949

Please sign in to comment.