about summary refs log tree commit diff
path: root/src/App.web.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-07-19 15:37:24 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-07-19 15:37:24 -0500
commitdc55f580049d284c6e01271e3885c4fa23a8f458 (patch)
tree64112d4525410ef3ca8553901af81f5df1e216da /src/App.web.tsx
parent6b32698b3e020e5910c92b72a1677e7cd56287d6 (diff)
downloadvoidsky-dc55f580049d284c6e01271e3885c4fa23a8f458.tar.zst
Replace mobx-state-tree with mobx and get a basic home feed rendering
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r--src/App.web.tsx28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 34b6ac6cb..a6f98487c 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -1,9 +1,33 @@
 import React, {useState, useEffect} from 'react'
-import {RootStore, setupState, RootStoreProvider} from './state'
+import moment from 'moment'
+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<RootStore | undefined>(undefined)
+  const [rootStore, setRootStore] = useState<RootStoreModel | undefined>(
+    undefined,
+  )
 
   // init
   useEffect(() => {