File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { timeSince } from '@/lib/time'
2
2
import styles from './item.module.css'
3
3
import Text from './text'
4
4
import { Dropdown } from 'react-bootstrap'
5
- import { useRouter } from 'next/router'
6
5
import { useShowModal } from './modal'
7
6
8
7
export function OldItem ( { version } ) {
@@ -20,20 +19,9 @@ export function OldItem ({ version }) {
20
19
}
21
20
22
21
export default function HistoryDropdown ( { item } ) {
23
- const router = useRouter ( )
24
22
const showModal = useShowModal ( )
25
-
26
23
const lastEdited = new Date ( item . oldVersions [ 0 ] . cloneDiedAt )
27
24
28
- // TODO: overengineering? not handling it just closes the modal
29
- /* const handleLastEdit = () => {
30
- if (!item.parentId) {
31
- router.replace(`/items/${item.id}`)
32
- } else {
33
- router.replace(`/items/${item.parentId}/?commentId=${item.id}`)
34
- }
35
- } */
36
-
37
25
return (
38
26
< Dropdown className = 'pointer' as = 'span' >
39
27
< Dropdown . Toggle as = 'span' onPointerDown = { e => e . preventDefault ( ) } >
You can’t perform that action at this time.
0 commit comments