From bbef0e295174b0fc92b0ab7401577819df790478 Mon Sep 17 00:00:00 2001 From: Papa Sougou Wele Date: Tue, 21 Jun 2022 14:07:07 -0400 Subject: [PATCH] feat(aave-v2): Add presentation config --- src/apps/aave-v2/aave-v2.definition.ts | 30 +++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/apps/aave-v2/aave-v2.definition.ts b/src/apps/aave-v2/aave-v2.definition.ts index b98d047f7..7f2085430 100644 --- a/src/apps/aave-v2/aave-v2.definition.ts +++ b/src/apps/aave-v2/aave-v2.definition.ts @@ -38,7 +38,35 @@ export const AAVE_V2_DEFINITION = appDefinition({ isHiddenFromExplore: true, }, }, - + presentationConfig: { + tabs: [ + { + label: 'Lending', + viewType: 'split', + views: [ + { + viewType: 'list', + label: 'Supply', + groupIds: ['supply'], + }, + { + viewType: 'split', + label: 'Borrow', + views: [ + { + label: 'Variable', + groupIds: ['variable-debt'], + }, + { + label: 'Stable', + groupIds: ['stable-debt'], + }, + ], + }, + ], + }, + ], + }, supportedNetworks: { [Network.ETHEREUM_MAINNET]: [AppAction.VIEW, AppAction.TRANSACT], [Network.AVALANCHE_MAINNET]: [AppAction.VIEW, AppAction.TRANSACT],