Skip to content

Commit f74a190

Browse files
author
Coltin Kifer
committed
fix: connect IndexView to router
1 parent 2882296 commit f74a190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/IndexView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PureComponent } from 'react';
2-
import { Link } from 'react-router-dom';
2+
import { Link, withRouter } from 'react-router-dom';
33
import { LineChart, Line, XAxis, YAxis, CartesianGrid } from 'recharts';
44
import Highlight from '../utils/Highlight';
55
import { getLocaleType, localeGet } from '../utils/LocaleUtils';
@@ -167,4 +167,4 @@ class IndexView extends PureComponent {
167167
}
168168
}
169169

170-
export default IndexView;
170+
export default withRouter(IndexView);

0 commit comments

Comments
 (0)