diff --git a/src/app/components/vault/components/vault-information.tsx b/src/app/components/vault/components/vault-information.tsx index 77add8cc..fcae3dfa 100644 --- a/src/app/components/vault/components/vault-information.tsx +++ b/src/app/components/vault/components/vault-information.tsx @@ -1,4 +1,5 @@ import { useDispatch } from 'react-redux'; +import { useNavigate } from 'react-router-dom'; import { CheckIcon } from '@chakra-ui/icons'; import { Button, HStack, Image, Text, VStack } from '@chakra-ui/react'; @@ -35,6 +36,8 @@ export function VaultInformation({ handleClick, }: VaultInformationProps): React.JSX.Element { const dispatch = useDispatch(); + const navigate = useNavigate(); + const date = new Date(timestamp * 1000).toLocaleDateString('en-US'); return ( @@ -63,7 +66,10 @@ export function VaultInformation({ ) : state === VaultState.READY && !isSelected ? (