Add icons
This commit is contained in:
parent
dc55f58004
commit
e78143b3dc
10 changed files with 218 additions and 57 deletions
|
@ -1,29 +1,8 @@
|
|||
import React, {useState, useEffect} from 'react'
|
||||
import moment from 'moment'
|
||||
import * as view from './view/index'
|
||||
import {RootStoreModel, setupState, RootStoreProvider} from './state'
|
||||
import * as Routes from './view/routes'
|
||||
|
||||
moment.updateLocale('en', {
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: '%s ago',
|
||||
s: 'a few seconds',
|
||||
ss: '%ds',
|
||||
m: 'a minute',
|
||||
mm: '%dm',
|
||||
h: 'an hour',
|
||||
hh: '%dh',
|
||||
d: 'a day',
|
||||
dd: '%dd',
|
||||
w: 'a week',
|
||||
ww: '%dw',
|
||||
M: 'a month',
|
||||
MM: '%dmo',
|
||||
y: 'a year',
|
||||
yy: '%dy',
|
||||
},
|
||||
})
|
||||
|
||||
function App() {
|
||||
const [rootStore, setRootStore] = useState<RootStoreModel | undefined>(
|
||||
undefined,
|
||||
|
@ -31,6 +10,7 @@ function App() {
|
|||
|
||||
// init
|
||||
useEffect(() => {
|
||||
view.setup()
|
||||
setupState().then(setRootStore)
|
||||
}, [])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue