-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
44 lines (41 loc) · 1.04 KB
/
index.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
import React from 'react'
import { Card, Typography } from 'antd'
import styled from 'styled-components'
// import { useHistory } from 'react-router'
const Wrapper = styled.div`
margin: 40px;
`
const policies = [
'cache-first',
'network-only',
'cache-and-network',
'cache-only',
'no-cache',
'standby',
]
export const HomeContainer = () => {
return (
<Wrapper>
<Card title="Hello">
<h1>Here is Home</h1>
<ul>
{policies.map((policy) => (
<li key={policy}>
<Typography.Link href={`/${policy}`}>{policy}</Typography.Link>
</li>
))}
<li key="read-query-network-only">
<Typography.Link href="/read-query-network-only">
Read Query after network-only
</Typography.Link>
</li>
<li key="read-query-no-cache">
<Typography.Link href="/read-query-no-cache">
Read Query after no-cache
</Typography.Link>
</li>
</ul>
</Card>
</Wrapper>
)
}