mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: premium purchase price
This commit is contained in:
1 parent
8ebd604cde
commit
1a1b8c3a65
1 file changed
+13
-1
@@ -13,7 +13,7 @@ export function MetaSection() {
|
|||||||
const ClassIcon = classIcons[tank.class];
|
const ClassIcon = classIcons[tank.class];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex justify="center" align="center" py="8" px="4">
|
<Flex justify="center" align="center" px="4">
|
||||||
<Flex
|
<Flex
|
||||||
align="center"
|
align="center"
|
||||||
justify="center"
|
justify="center"
|
||||||
@@ -80,6 +80,18 @@ export function MetaSection() {
|
|||||||
Economics
|
Economics
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|
||||||
|
{tank.treeType === 'premium' && (
|
||||||
|
<Listing label="Purchase price">
|
||||||
|
<Flex align="center" gap="1">
|
||||||
|
{tank.price.value / 400}
|
||||||
|
<img
|
||||||
|
style={{ width: '1em', height: '1em' }}
|
||||||
|
alt="gold"
|
||||||
|
src={asset('icons/currencies/gold.webp')}
|
||||||
|
/>
|
||||||
|
</Flex>
|
||||||
|
</Listing>
|
||||||
|
)}
|
||||||
<Listing
|
<Listing
|
||||||
label={`${tank.treeType === 'researchable' ? 'Purchase' : 'Restoration'} price`}
|
label={`${tank.treeType === 'researchable' ? 'Purchase' : 'Restoration'} price`}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user