Skip to content

Commit

Permalink
feat: add mock point chips and mock vault types to the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
rozanagy committed Nov 6, 2024
1 parent 8dc4238 commit cced6d0
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 17 deletions.
10 changes: 10 additions & 0 deletions public/images/logos/symbiotic-comp-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions public/images/logos/uniswap-comp-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Button, HStack, Text, VStack } from '@chakra-ui/react';
import { Text, VStack } from '@chakra-ui/react';

import { SelectVaultTypeStackLayout } from './one-click-yield-container.select-vault-type-stack.layout';
import {
Expand All @@ -12,6 +12,16 @@ const mockVaultTypes: OneClickYieldVaultInformation[] = [
vaultTypeLabel: 'Enzyme Curve Vault',
vaultTypeLogoUrl: '/images/logos/enzyme-logo.svg',
},
{
vaultType: 'symbiotic',
vaultTypeLabel: 'Symbiotic Vault',
vaultTypeLogoUrl: '/images/logos/symbiotic-comp-logo.svg',
},
{
vaultType: 'uniswap',
vaultTypeLabel: 'Uniswap Vault',
vaultTypeLogoUrl: '/images/logos/uniswap-comp-logo.svg',
},
];

interface SelectVaultTypeStackProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
import { InfoOutlineIcon } from '@chakra-ui/icons';
import { Button, HStack, Image, Text, VStack } from '@chakra-ui/react';

import { VaultTypeBoxPointChip } from './components/one-click-yield-container.select-vault-type-stack.vault-type-box.point-chip';
import {
VaultTypeBoxPointChip,
VaultTypeBoxPointChipProps,
} from './components/one-click-yield-container.select-vault-type-stack.vault-type-box.point-chip';
import { VaultTypeBoxLayout } from './one-click-yield-container.select-vault-type-stack.vault-type-box.layout';

const mockPointChips: VaultTypeBoxPointChipProps[] = [
{
bgColor: 'purple.01',
imgPath: '/images/deposit-img.png',
multiplier: 5,
},
{
bgColor: 'white.03',
imgPath: '/images/logos/symbiotic-logo.svg',
multiplier: 20,
},
{
bgColor: 'white.03',
imgPath: '/images/logos/mellow-logo.svg',
multiplier: 47,
},
];

export interface OneClickYieldVaultInformation {
vaultType: string;
vaultTypeLabel: string;
Expand Down Expand Up @@ -54,21 +75,14 @@ export function VaultTypeBox({
Points
</Text>
<HStack>
<VaultTypeBoxPointChip
bgColor={'purple.01'}
imgPath={'/images/deposit-img.png'}
multiplier={5}
/>
<VaultTypeBoxPointChip
bgColor={'white.03'}
imgPath={'/images/logos/symbiotic-logo.svg'}
multiplier={20}
/>
<VaultTypeBoxPointChip
bgColor={'white.03'}
imgPath={'/images/logos/mellow-logo.svg'}
multiplier={47}
/>
{mockPointChips.map(pointChip => (
<VaultTypeBoxPointChip
key={pointChip.multiplier}
bgColor={pointChip.bgColor}
imgPath={pointChip.imgPath}
multiplier={pointChip.multiplier}
/>
))}
</HStack>
</VStack>
</HStack>
Expand Down

0 comments on commit cced6d0

Please sign in to comment.