This repository was archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.tsx
97 lines (85 loc) · 2.16 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import React from 'react'
import { useParams } from 'react-router'
import styled from 'styled-components'
import { Search } from 'apps/explorer/components/common/Search'
import SupportIcon from 'assets/img/support.png'
import { MEDIA } from 'const'
const Title = styled.h1`
margin: 0.55rem 0 2.5rem;
font-weight: ${({ theme }): string => theme.fontBold};
`
const Content = styled.div`
font-size: 16px;
border: 0.1rem solid ${({ theme }): string => theme.borderPrimary};
padding: 20px;
border-radius: 0.4rem;
p {
line-height: ${({ theme }): string => theme.fontLineHeight};
overflow-wrap: break-word;
}
strong {
color: ${({ theme }): string => theme.textSecondary2};
}
`
const SearchSection = styled.div`
margin-top: 6rem;
padding: 20px;
border-radius: 0.4rem;
background-color: ${({ theme }): string => theme.bg2};
`
const SearchContent = styled.div`
display: flex;
flex-flow: row;
align-items: center;
gap: 2.5rem;
@media ${MEDIA.mobile} {
flex-flow: column wrap;
gap: 0;
form {
width: 100%;
input {
width: 100%;
}
}
}
`
const Support = styled.a`
height: 5rem;
border: 1px solid ${({ theme }): string => theme.borderPrimary};
border-radius: 0.6rem;
width: 160px;
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
cursor: pointer;
color: ${({ theme }): string => theme.white} !important;
:hover {
background-color: ${({ theme }): string => theme.greyOpacity};
text-decoration: none;
}
`
export const OrderNotFound: React.FC = () => {
const { orderId } = useParams<{ orderId: string }>()
return (
<>
<Title>Order not found</Title>
<Content>
<p>Sorry, no matches found for:</p>
<p>
<strong>"{orderId}"</strong>
</p>
<SearchSection>
<SearchContent>
<Search />
<p>or</p>
<Support href="https://chat.cowswap.exchange/" target="_blank" rel="noopener noreferrer">
Get Support
<img src={SupportIcon} />
</Support>
</SearchContent>
</SearchSection>
</Content>
</>
)
}