Skip to content

Commit

Permalink
feat(story): add back button
Browse files Browse the repository at this point in the history
  • Loading branch information
KatvonRivia committed Oct 23, 2019
1 parent ef0f3f2 commit 734af29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/scripts/components/story/story.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {FunctionComponent, useEffect} from 'react';
import {useDispatch, useSelector} from 'react-redux';
import {useParams, Redirect} from 'react-router-dom';
import {useParams, Redirect, Link} from 'react-router-dom';
import {FormattedMessage} from 'react-intl';

import fetchStory from '../../actions/fetch-story';
import {storySelector} from '../../reducers/story';
Expand Down Expand Up @@ -29,6 +30,9 @@ const Story: FunctionComponent = () => {

return (
<div className={styles.story}>
<Link to="/stories" className={styles.backButton}>
<FormattedMessage id="goBack" />
</Link>
{story && (
<div className={styles.sidepanel} key={slide.title}>
<img src={slide.image} className={styles.previewImage} />
Expand Down

0 comments on commit 734af29

Please sign in to comment.