forked from clintonwoo/hackernews-react-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlists.tsx
83 lines (79 loc) · 2.33 KB
/
lists.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import Link from 'next/link';
import * as React from 'react';
import { withDataAndRouter } from '../src/helpers/with-data';
import { MainLayout } from '../src/layouts/main-layout';
export function ListsPage(props): JSX.Element {
const { router } = props;
return (
<MainLayout currentUrl={router.pathname}>
<tr>
<td>
<table style={{ borderSpacing: '7px 0px' }}>
<tbody>
<tr>
<td>
<Link href="/leaders">
<a>leaders</a>
</Link>
</td>
<td>Users with most karma.</td>
</tr>
<tr>
<td>
<Link href="/front">
<a>front</a>
</Link>
</td>
<td>
Front page submissions for a given day (e.g.{' '}
<a href="/front?day=2016-06-20">2016-06-20</a>), ordered by time spent there.
</td>
</tr>
<tr>
<td>
<Link href="/best">
<a>best</a>
</Link>
</td>
<td>Highest-voted recent links.</td>
</tr>
<tr>
<td>
<Link href="/active">
<a>active</a>
</Link>
</td>
<td>Most active current discussions.</td>
</tr>
<tr>
<td>
<Link href="/bestcomments">
<a>bestcomments</a>
</Link>
</td>
<td>Highest-voted recent comments.</td>
</tr>
<tr>
<td>
<Link href="/noobstories">
<a>noobstories</a>
</Link>
</td>
<td>Submissions from new accounts.</td>
</tr>
<tr>
<td>
<Link href="/noobcomments">
<a>noobcomments</a>
</Link>
</td>
<td>Comments from new accounts.</td>
</tr>
</tbody>
</table>
</td>
</tr>
</MainLayout>
);
}
export default withDataAndRouter(ListsPage);