index.tsx 647 Bytes
Newer Older
lirandong committed
1
import { ComponentClass } from 'react'
lirandong committed
2
import DeviceList from '../device_list'
lirandong committed
3
import Taro, { Component, Config } from '@tarojs/taro'
lirandong committed
4
// import { View, Text } from '@tarojs/components'
lirandong committed
5 6 7 8 9 10 11 12
import './index.scss'

type PageStateProps = {}

type PageDispatchProps = {}

type PageOwnProps = {}

lirandong committed
13
type PageState = {}
lirandong committed
14 15 16 17 18 19 20 21 22

type IProps = PageStateProps & PageDispatchProps & PageOwnProps

interface MyDevice {
  props: IProps
  state: PageState
}

class MyDevice extends Component {
lirandong committed
23 24 25
  config: Config = {
    navigationBarTitleText: '我的设备'
  }
lirandong committed
26
  render() {
lirandong committed
27
    return <DeviceList />
lirandong committed
28 29 30
  }
}
export default MyDevice as ComponentClass<PageOwnProps, PageState>