-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.tsx
35 lines (32 loc) · 904 Bytes
/
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
import React from 'react'
import styled from 'styled-components'
import App from 'CONTAINERS/App'
import { hot } from 'react-hot-loader'
import { getDefaultOptions } from 'UTILS/options'
import GlobalStyle from 'COMPONENTS/expand/GlobalStyle'
const PlaygroundContainer = styled.div`
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
`
const Playground: React.FC = () => (
<PlaygroundContainer>
<GlobalStyle />
<App
options={getDefaultOptions({
flavor: 'bubble' as 'bubble',
location: 'beijing',
geolocation: true,
language: 'zh-Hant',
unit: 'c',
theme: 'auto' as 'auto',
token: '', // 将生成的 Token 填入此处
hover: 'always' as 'always'
})}
/>
</PlaygroundContainer>
)
export default hot(module)(Playground)