Skip to content

Commit

Permalink
style: improve deposit style + link inside menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tche authored and tche committed Dec 26, 2024
1 parent bde7bf6 commit bd6699b
Show file tree
Hide file tree
Showing 9 changed files with 348 additions and 260 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ NEXT_PUBLIC_LIFI_API_KEY=
NEXT_PUBLIC_JUMPER_API=http://localhost:3001
NEXT_REVALIDATION_SECRET=
NEXT_PUBLIC_SOLANA_RPC_URI=https://api.devnet.solana.com
WASH_HANDSHAKE=
WASH_HANDSHAKE=
2 changes: 1 addition & 1 deletion .env.localhost
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ NEXT_PUBLIC_LIFI_API_KEY=
NEXT_PUBLIC_JUMPER_API=http://localhost:3001
NEXT_REVALIDATION_SECRET=
NEXT_PUBLIC_SOLANA_RPC_URI=https://api.devnet.solana.com
WASH_HANDSHAKE=secure-key
WASH_HANDSHAKE=secure-key
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function BerachainTransactionDetails({
width: '100%',
}}
>
<Typography>Transaction Details</Typography>
<Typography>Market Details</Typography>
{!open ? <ArrowDropDown /> : <ArrowDropUp />}
</Box>
</AccordionSummary>
Expand Down Expand Up @@ -145,7 +145,7 @@ function BerachainTransactionDetails({
* @info Reward Style
* @condition Recipe Market
*/}
{market.market_type === RoycoMarketType.recipe.value && (
{/* {market.market_type === RoycoMarketType.recipe.value && (
<InfoCard.Row>
<InfoCard.Row.Key>Reward Style</InfoCard.Row.Key>
<InfoCard.Row.Value>
Expand Down Expand Up @@ -186,7 +186,7 @@ function BerachainTransactionDetails({
</Tooltip>
</InfoCard.Row.Value>
</InfoCard.Row>
)}
)} */}
{/**
* @info Incentives
*/}
Expand Down Expand Up @@ -228,38 +228,38 @@ function BerachainTransactionDetails({
* @info TVL
*/}
{
<InfoCard.Row>
<InfoCard.Row.Key>TVL</InfoCard.Row.Key>
<InfoCard.Row.Value>
<Typography
variant="body2"
color="textSecondary"
component="span"
>
{Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
notation: 'standard',
useGrouping: true,
}).format(market.locked_quantity_usd ?? 0)}
</Typography>
<Tooltip
title={
market.market_type === RoycoMarketType.recipe.value
? 'Value of all input tokens locked inside weiroll wallets'
: 'Value of all input tokens deposited in underlying vault through Royco'
}
placement="top"
enterTouchDelay={0}
arrow
>
<InfoIcon
htmlColor="white"
sx={{ cursor: 'help', marginX: 1 }}
/>
</Tooltip>
</InfoCard.Row.Value>
</InfoCard.Row>
// <InfoCard.Row>
// <InfoCard.Row.Key>TVL</InfoCard.Row.Key>
// <InfoCard.Row.Value>
// <Typography
// variant="body2"
// color="textSecondary"
// component="span"
// >
// {Intl.NumberFormat('en-US', {
// style: 'currency',
// currency: 'USD',
// notation: 'standard',
// useGrouping: true,
// }).format(market.locked_quantity_usd ?? 0)}
// </Typography>
// <Tooltip
// title={
// market.market_type === RoycoMarketType.recipe.value
// ? 'Value of all input tokens locked inside weiroll wallets'
// : 'Value of all input tokens deposited in underlying vault through Royco'
// }
// placement="top"
// enterTouchDelay={0}
// arrow
// >
// <InfoIcon
// htmlColor="white"
// sx={{ cursor: 'help', marginX: 1 }}
// />
// </Tooltip>
// </InfoCard.Row.Value>
// </InfoCard.Row>
}
<InfoCard.Row>
<InfoCard.Row.Key>Input Token</InfoCard.Row.Key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export const BerachainWidget = ({
{tab === 1 && (
<Box sx={{ marginTop: theme.spacing(1.5) }}>
<InfoBlock market={market} />
<BerachainTransactionDetails type="deposit" market={market} />
<DepositWidget
market={market}
chain={chain}
Expand All @@ -137,6 +136,7 @@ export const BerachainWidget = ({
},
}}
/>
<BerachainTransactionDetails type="deposit" market={market} />
</Box>
)}
{tab === 2 && (
Expand Down
Loading

0 comments on commit bd6699b

Please sign in to comment.