Skip to content

Commit

Permalink
fix: add footer link & fix key value
Browse files Browse the repository at this point in the history
  • Loading branch information
hendraaagil committed Jul 11, 2021
1 parent d5e3482 commit 434c6e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
15 changes: 14 additions & 1 deletion src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { HStack, Link, useColorModeValue, VStack } from '@chakra-ui/react';
import {
Divider,
HStack,
Link,
useColorModeValue,
VStack,
} from '@chakra-ui/react';
import { FaGithub } from 'react-icons/fa';

const Footer = () => (
Expand All @@ -14,6 +20,13 @@ const Footer = () => (
<Link href="https://github.com/hendraaagil/bed-covid-rs-indo" isExternal>
GitHub Repository
</Link>
<Divider orientation="vertical" h="18px" />
<Link
href="https://github.com/satyawikananda/rs-bed-covid-indo-api"
isExternal
>
API Source
</Link>
</HStack>
</VStack>
);
Expand Down
6 changes: 3 additions & 3 deletions src/components/HospitalCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ const HospitalCard = ({ hosp, type }) => {
)}
</Stack>
{beds && (
<Stack direction={['column', 'row']} justify="space-between">
{beds.map((be) => (
<Stack direction={['column', 'column', 'row']} justify="space-between">
{beds.map((be, index) => (
<Box
key={be.bed_class}
key={String(index)}
p={3}
textAlign="center"
bg={bgCard}
Expand Down

1 comment on commit 434c6e6

@vercel
Copy link

@vercel vercel bot commented on 434c6e6 Jul 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.