Skip to content

Commit

Permalink
Merge branch 'development' into companypie-component
Browse files Browse the repository at this point in the history
  • Loading branch information
victoria-fahey committed Dec 5, 2021
2 parents 6273bf3 + 68f59d1 commit 8cd38b1
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion client/components/CompanyInfoCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,38 @@ import {
Tr,
Th,
Td,
TableCaption
TableCaption,
Image,
Center,
Box
} from '@chakra-ui/react'

function Infocard ({ stonk }) {
const image = `https://s3.polygon.io/logos/${stonk.stockSymbol.toLowerCase()}/logo.png`

return (
<Table
size='sm'
variant='striped'
colorScheme='gray'
>
<TableCaption>Last Processing Date: {stonk.lastProcessingDate}</TableCaption>
<Box
roundedTop='lg'
h={36}
bg='white'
p={4}
>
<Center w='full' h='full'>
<Image
rounded={'sm'}
maxHeight='full'
width='auto'
src={image}
alt={stonk.stockSymbol}
/>
</Center>
</Box>
<Thead>
<Tr>
<Th>Company Name</Th>
Expand Down

0 comments on commit 8cd38b1

Please sign in to comment.