summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-12-11 21:28:33 -0800
committerDessalines <tyhou13@gmx.com>2019-12-11 21:28:33 -0800
commit665dca80d00c3947a4838bbd468cfdcb9241ace5 (patch)
treed5cb8ac97b2ff27dbbfe72f2d7eaec4f797fe2a1 /ui
parent4cbfe6d0fc49fcaeaf95d1993ebe6b16fa49b1a3 (diff)
Moving front end routes from nginx to actix
- Fixes #363
Diffstat (limited to 'ui')
-rw-r--r--ui/src/index.tsx2
-rw-r--r--ui/src/utils.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/index.tsx b/ui/src/index.tsx
index 2e50db88..41404f4b 100644
--- a/ui/src/index.tsx
+++ b/ui/src/index.tsx
@@ -38,11 +38,11 @@ class Index extends Component<any, any> {
<Navbar />
<div class="mt-4 p-0">
<Switch>
+ <Route exact path={`/`} component={Main} />
<Route
path={`/home/type/:type/sort/:sort/page/:page`}
component={Main}
/>
- <Route exact path={`/`} component={Main} />
<Route path={`/login`} component={Login} />
<Route path={`/create_post`} component={CreatePost} />
<Route path={`/create_community`} component={CreateCommunity} />
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index 1bbda3aa..98645fe3 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -197,7 +197,7 @@ export async function getPageTitle(url: string) {
export function debounce(
func: any,
- wait: number = 500,
+ wait: number = 1000,
immediate: boolean = false
) {
// 'private' variable for instance