Skip to content

Commit

Permalink
earn and bolts
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseevaiana committed Jul 18, 2024
1 parent 6e18225 commit 9be1e20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/Bolts/QuestBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const QuestBlock = ({ title, text, items, button }: { title: any; text: any; ite
<QuestBtn>{button}</QuestBtn>
</BlockHeader>
<Block>
{items.map((item: Item, index: string) => (
{items.map((item: Item, index: number) => (
<Item key={index}>
<Label>{item.title}</Label>
<Value>{item.status}</Value>
Expand Down
1 change: 1 addition & 0 deletions src/containers/Earn/PoolBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { formatWithCommas, getTokenLogo } from '~/utils'
import { Tooltip as ReactTooltip } from 'react-tooltip'

const PoolBlock = ({ nitroPoolAddress, nitroPoolData }: { nitroPoolAddress: string; nitroPoolData: any }) => {
console.log("DATA: ", nitroPoolData)
const { collateral0TokenSymbol, collateral1TokenSymbol, rewardToken1Symbol, rewardToken2Symbol } = nitroPoolData

const getTimePeriod = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Earn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const Earn = () => {
{nitroPools.length > 0 ? (
POOLS?.map(
(
pool: JSX.IntrinsicAttributes & { nitroPoolAddress: string; nitroPoolData: any },
pool: JSX.IntrinsicAttributes & { nitroPoolAddress: string; nitroPoolData: PoolData },
i: number
) => <PoolBlock {...pool} nitroPoolData={nitroPools[i]} key={`${pool.nitroPoolAddress}-pool`} />
)
Expand Down

0 comments on commit 9be1e20

Please sign in to comment.