Skip to content

Commit

Permalink
SOV-4445: Runes page Updates (#1028)
Browse files Browse the repository at this point in the history
* chore: update rune symbols

* Create neat-humans-develop.md

* chore: update styles for dog
  • Loading branch information
pietro-maximoff authored Oct 17, 2024
1 parent 3f9e791 commit 0bc23cc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/neat-humans-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"frontend": patch
"@sovryn/contracts": patch
---

chore: update rune symbols
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { translations } from '../../../locales/i18n';
import { RUNES_USE_CASE_ACTIONS, AvailableRunes } from './RunesPage.types';
import convertIcon from './assets/convert.svg';
import earnIcon from './assets/earn.svg';
import iconDog from './assets/iconDog.svg';
import iconPups from './assets/iconPups.svg';
import runesBenefitsIcon1 from './assets/l1.svg';
import runesBenefitsIcon2 from './assets/l2.svg';
Expand All @@ -16,11 +15,10 @@ export const AVAILABLE_RUNES: AvailableRunes = {
symbol: 'POWA',
},
DOG: {
symbol: 'DOG',
icon: iconDog,
symbol: 'DOGGOTOTHEMOON',
},
PUPS: {
symbol: 'PUPS',
symbol: 'PUPSWORLDPEACE',
icon: iconPups,
},
};
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/app/5_pages/RunesPage/RunesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const RunesPage: FC = () => {
className="text-gray-30 text-center font-medium text-base"
children={t(pageTranslations.availableRunes)}
/>
<div className="flex justify-center gap-3 my-6 flex-wrap px-6">
<div className="flex justify-center gap-3 my-6 flex-wrap">
{renderAvailableRunes()}
</div>

Expand Down
6 changes: 5 additions & 1 deletion apps/frontend/src/app/5_pages/RunesPage/RunesPage.utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { t } from 'i18next';

import { Button, ButtonSize, ButtonStyle, Paragraph } from '@sovryn/ui';

import { BOB_CHAIN_ID } from '../../../config/chains';

import { AssetRenderer } from '../../2_molecules/AssetRenderer/AssetRenderer';
import { translations } from '../../../locales/i18n';
import {
Expand All @@ -29,11 +31,13 @@ export const renderAvailableRunes = () =>
asset={symbol}
showAssetLogo
assetClassName="font-semibold text-gray-30"
logoClassName="rounded-full w-5 h-5 mr-2"
chainId={BOB_CHAIN_ID}
/>
)}
</div>
{symbol === AVAILABLE_RUNES.PUPS.symbol && (
<div className="text-xs text-gray-30">
<div className="text-xs text-gray-30 text-center">
{t(pageTranslations.availableSoon)}
</div>
)}
Expand Down
7 changes: 7 additions & 0 deletions packages/contracts/src/contracts/assets/bobTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ export const bobTestnet: Array<AssetDetails> = [
decimals: 18,
getIcon: async () => (await import('./icons/bob/powa')).default,
},
{
symbol: 'DOGGOTOTHEMOON',
address: '', //TODO add testnet address for DOG•GO•TO•THE•MOON
name: 'DOG•GO•TO•THE•MOON',
decimals: 18,
getIcon: async () => (await import('./icons/bob/dog')).default,
},
{
symbol: 'WSTETH',
address: '0xf83A152C0A526a45E93D91c95894a19A1258E30E',
Expand Down

0 comments on commit 0bc23cc

Please sign in to comment.