-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Centrifuge App: Portfolio page (#1590)
* feat: Portfolio page - add content structure - create AccountTokens - create AccountTransactions - create getAllTransactions related to one address * feat: Transactions route * feat: rewards value and styling PortfolioRewards - creates PortfolioRewards - refactor 'useComputeLiquidityRewards' to accept an array of {poolId, trancheId} - refactor 'getBalances' to respect 'reserved' balance * feat: claim all rewards - refactor computeReward to recall on all events - refactor claimLiquidityRewards to accept array of tranches * optimize filter and add outstandingOrders * feat: get all transactions data filtered by account * feat: TransactionCard * wip: trying to calc amount * Transactions list * feat: token list * feat: Allocation * Hide link to portfolio behind debug flag * Show portfolio link if logged in * Refactor and prepare layout for shared work * Remove unused var * Clean up --------- Co-authored-by: Hornebom <[email protected]>
- Loading branch information
1 parent
0a38bea
commit 0c7bd91
Showing
26 changed files
with
1,112 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { BoxProps, Stack } from '@centrifuge/fabric' | ||
import * as React from 'react' | ||
|
||
type BaseSectionProps = BoxProps & { | ||
children: React.ReactNode | ||
} | ||
|
||
export function BasePadding({ children, ...boxProps }: BaseSectionProps) { | ||
return ( | ||
<Stack pt={3} pb={4} px={[2, 2, 3, 3, 5]} {...boxProps}> | ||
{children} | ||
</Stack> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.