Skip to content

Commit

Permalink
fix: missing attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
rozanagy committed Jan 11, 2024
1 parent 68022d5 commit 8879f1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/components/vault/components/vault-progress-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Progress, Text, VStack } from '@chakra-ui/react';
import { VaultState } from '@models/vault';

enum ActionType {
export enum ActionType {
CONFIRM = 'CONFIRM',
VERIFY = 'VERIFY',
}
Expand Down
8 changes: 6 additions & 2 deletions src/app/components/vault/vault-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Vault, VaultState } from '@models/vault';
import { VaultCardLayout } from './components/vault-card.layout';
import { VaultExpandedInformation } from './components/vault-expanded-information/vault-expanded-information';
import { VaultInformation } from './components/vault-information';
import { VaultProgressBar } from './components/vault-progress-bar';
import { ActionType, VaultProgressBar } from './components/vault-progress-bar';

interface VaultCardProps {
vault?: Vault;
Expand Down Expand Up @@ -54,7 +54,11 @@ export function VaultCard({
/>
)}
{[VaultState.FUNDING, VaultState.CLOSED].includes(vault.state) && (
<VaultProgressBar confirmedBlocks={confirmations} vaultState={vault.state} />
<VaultProgressBar
confirmedBlocks={confirmations}
vaultState={vault.state}
actionType={ActionType.CONFIRM}
/>
)}
</VaultCardLayout>
);
Expand Down

0 comments on commit 8879f1d

Please sign in to comment.