Skip to content

Commit

Permalink
Add paras campaign (#815)
Browse files Browse the repository at this point in the history
* add paras campaign

* update title

* update details
  • Loading branch information
sirius651 committed Jun 13, 2023
1 parent 5d4b0b2 commit 4d34f6b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/components/dapp-staking/my-staking/DynamicAdsArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@
<div class="card-info">
<div class="txt--category">{{ t.category }}</div>
<div class="txt--title">
{{ t.title }}
</div>
<!-- MEMO: will be rollback later
<div class="txt--title">
{{
index === 0 ? $n(truncate(rewardsDeveloper, 0)) + ' ' + nativeTokenSymbol : t.title
}}
</div>
</div> -->
<div class="txt--subtitle">{{ t.subtitle }}</div>
</div>
</div>
Expand Down Expand Up @@ -84,12 +88,15 @@ export default defineComponent({
};
const sourceImg = (img: string, index: number) => {
// MEMO: will be rollback later
// if (index === 0) {
// if (isShiden.value) {
// return require('/src/assets/img/ic_sdn_farm.svg');
// } else {
// return require('/src/assets/img/ic_astar_farm.svg');
// }
if (index === 0) {
if (isShiden.value) {
return require('/src/assets/img/ic_sdn_farm.svg');
} else {
return require('/src/assets/img/ic_astar_farm.svg');
}
return require('/src/assets/img/paras_logo.svg');
} else if (index === 1) {
return require('/src/assets/img/paras_logo.svg');
} else if (index === 2) {
Expand Down

0 comments on commit 4d34f6b

Please sign in to comment.