chore: cleanup data fetching

This commit is contained in:
Kyle Gill
2019-03-28 22:52:04 -06:00
parent 205f2b3e9b
commit eb2a76ff7c
4 changed files with 148 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ const Seek = ({ title = "", prev = "", next = "", disableNext, theme }) => (
<Link to={prev}>
<Icon name="ChevronLeft" />
</Link>
<Link to={disableNext ? "#" : next}>
{disableNext ? (
<Icon
disabled={disableNext}
name="ChevronRight"
@@ -41,7 +41,17 @@ const Seek = ({ title = "", prev = "", next = "", disableNext, theme }) => (
color: disableNext ? theme.colors.hover : theme.colors.secondary
}}
/>
</Link>
) : (
<Link to={next}>
<Icon
disabled={disableNext}
name="ChevronRight"
style={{
color: disableNext ? theme.colors.hover : theme.colors.secondary
}}
/>
</Link>
)}
</SeekArrows>
</SeekHeader>
);