Ott 583 inaccessable match in users country (#232)
* feat(579): added message if match is not accessible in user's country * refactor(583): removed React imports * refactor(583): fix review commentskeep-around/af30b88d367751c9e05a735e4a0467a96238ef47
parent
94684184e3
commit
d8c1e7b2bc
@ -0,0 +1,46 @@ |
|||||||
|
import styled from 'styled-components/macro' |
||||||
|
|
||||||
|
import { T9n } from 'features/T9n' |
||||||
|
|
||||||
|
const Wrapper = styled.div` |
||||||
|
position: absolute; |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
background-color: rgba(0, 0, 0, 0.4); |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
justify-content: center; |
||||||
|
` |
||||||
|
|
||||||
|
const Message = styled.div` |
||||||
|
width: 240px; |
||||||
|
padding: 12px; |
||||||
|
color: #fff; |
||||||
|
background-color: #EB5757; |
||||||
|
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.25); |
||||||
|
border-radius: 10px; |
||||||
|
` |
||||||
|
|
||||||
|
const Title = styled.h3` |
||||||
|
font-weight: bold; |
||||||
|
font-size: 16px; |
||||||
|
line-height: 20px; |
||||||
|
` |
||||||
|
|
||||||
|
const Text = styled.p` |
||||||
|
font-size: 13px; |
||||||
|
line-height: 16px; |
||||||
|
` |
||||||
|
|
||||||
|
export const NoAccessMessage = () => ( |
||||||
|
<Wrapper> |
||||||
|
<Message> |
||||||
|
<Title> |
||||||
|
<T9n t='no_match_access_title' /> |
||||||
|
</Title> |
||||||
|
<Text> |
||||||
|
<T9n t='no_match_access_body' /> |
||||||
|
</Text> |
||||||
|
</Message> |
||||||
|
</Wrapper> |
||||||
|
) |
||||||
Loading…
Reference in new issue