Przeglądaj źródła

add anchor function

kaoritokashiki 6 lat temu
rodzic
commit
49b7cdd755
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/client/js/components/PageComment/Comment.jsx

+ 1 - 1
src/client/js/components/PageComment/Comment.jsx

@@ -206,7 +206,7 @@ class Comment extends React.PureComponent {
               </div>
               <div className="page-comment-body">{commentBody}</div>
               <div className="page-comment-meta">
-                {commentedDate}
+                <span><a href={`#${commentId}`}>{commentedDate}</a></span>
                 <UncontrolledTooltip placement="bottom" fade={false} target={commentedDateId}>{commentedDateFormatted}</UncontrolledTooltip>
                 { isEdited && (
                   <>