File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 26
26
"react-markdown" : " ^4.1.0" ,
27
27
"react-relay" : " ^5.0.0" ,
28
28
"react-router-dom" : " ^5.0.1" ,
29
+ "react-router-hash-link" : " ^1.2.2" ,
29
30
"react-router-scroll-memory" : " ^2.0.3" ,
30
31
"react-syntax-highlighter" : " ^11.0.2" ,
31
32
"serialize-javascript" : " ^1.7.0" ,
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ import AddIcon from './addIcon';
15
15
import Tippy , { TippyGroup } from '@tippy.js/react' ;
16
16
import 'tippy.js/themes/light-border.css' ;
17
17
import { Link } from 'react-router-dom' ;
18
+ import { HashLink } from 'react-router-hash-link' ;
18
19
import { postRootQuery } from './App' ;
19
20
import GitHubLoginButton from './GitHubLoginButton' ;
20
21
import { NotificationContext } from './Notifications' ;
21
- import { Box , Heading , Text , Anchor } from 'grommet' ;
22
+ import { Box , Heading , Text } from 'grommet' ;
22
23
import UserContext from './UserContext' ;
23
24
import { lowerCase , sentenceCase } from 'change-case' ;
24
25
@@ -370,9 +371,9 @@ const Post = ({relay, post}: Props) => {
370
371
{ formatDate ( new Date ( post . createdAt ) , 'MMM eo, yyyy' ) }
371
372
</ Text >
372
373
< Text size = "xsmall" >
373
- < Anchor href = { `/post/${ post . number } #comments` } >
374
+ < HashLink to = { `/post/${ post . number } #comments` } >
374
375
view comments
375
- </ Anchor >
376
+ </ HashLink >
376
377
</ Text >
377
378
</ Box >
378
379
< Text size = "small" >
Original file line number Diff line number Diff line change @@ -11179,7 +11179,7 @@ prompts@^0.1.9:
11179
11179
kleur "^2.0.1"
11180
11180
sisteransi "^0.1.1"
11181
11181
11182
- prop-types@^15.5.4, prop-types@^15.6.2, prop-types@^15.7.2:
11182
+ prop-types@^15.5.4, prop-types@^15.6.0, prop-types@^15.6. 2, prop-types@^15.7.2:
11183
11183
version "15.7.2"
11184
11184
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
11185
11185
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -11563,6 +11563,13 @@ react-router-dom@^5.0.1:
11563
11563
tiny-invariant "^1.0.2"
11564
11564
tiny-warning "^1.0.0"
11565
11565
11566
+ react-router-hash-link@^1.2.2:
11567
+ version "1.2.2"
11568
+ resolved "https://registry.yarnpkg.com/react-router-hash-link/-/react-router-hash-link-1.2.2.tgz#7a0ad5e925d49596d19554de8bc6c554ce4f8099"
11569
+ integrity sha512-LBthLVHdqPeKDVt3+cFRhy15Z7veikOvdKRZRfyBR2vjqIE7rxn+tKLjb6DOmLm6JpoQVemVDnxQ35RVnEHdQA==
11570
+ dependencies:
11571
+ prop-types "^15.6.0"
11572
+
11566
11573
react-router-scroll-memory@^2.0.3:
11567
11574
version "2.0.3"
11568
11575
resolved "https://registry.yarnpkg.com/react-router-scroll-memory/-/react-router-scroll-memory-2.0.3.tgz#b3ad3e2d147688e05242abb68002378e674396da"
You can’t perform that action at this time.
0 commit comments