Skip to content

Commit

Permalink
feat: open staking incentives card by default
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Jun 30, 2023
1 parent 5e0b41e commit 6e7d6bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/_global/BalAccordion/BalAccordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ type Props = {
dependencies?: unknown;
showSectionBorder?: boolean;
reCalcKey?: number;
isOpenedByDefault?: boolean;
};
const props = withDefaults(defineProps<Props>(), {
showSectionBorder: true,
isOpenedByDefault: false,
reCalcKey: 0,
});
Expand Down Expand Up @@ -154,13 +156,13 @@ watch(
/>
</button>
<div
v-if="activeSection === section.id"
v-if="activeSection === section.id || isOpenedByDefault"
ref="accordionHeightSetterElement"
class="relative"
>
<!-- content -->
<div
v-if="isContentVisible"
v-if="isContentVisible || isOpenedByDefault"
ref="activeSectionElement"
:class="{
'border-b dark:border-gray-900 active-section rounded-b':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Props = {
defineProps<Props>();
const shouldShowWarningAlert = ref(true);
const shouldShowWarningAlert = ref(false);
const showCheckpointModal = ref(false);
const { networksSyncState, getGaugeWorkingBalance } = useCrossChainSync();
Expand Down

0 comments on commit 6e7d6bc

Please sign in to comment.