summaryrefslogtreecommitdiffstats
path: root/ui/src/interfaces.ts
diff options
context:
space:
mode:
authorderek <wwsage@gmail.com>2020-07-12 04:00:10 -0400
committerderek <wwsage@gmail.com>2020-07-13 20:14:01 -0400
commitf1d01f4fa091ffd506518fa0af049fb385684c75 (patch)
treed3e0f15df2cb0c2e038220592a1157994dfde3fc /ui/src/interfaces.ts
parentd71897620ceea58b2d314242ea2f646a466d338e (diff)
ui.components: split user component up to fix duplicate requests
Replace componentWillReceiveProps with getDerivedState and pass state as props to new component
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r--ui/src/interfaces.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts
index 1f281302..dc860e06 100644
--- a/ui/src/interfaces.ts
+++ b/ui/src/interfaces.ts
@@ -937,3 +937,10 @@ export interface WebSocketJsonResponse {
error?: string;
reconnect?: boolean;
}
+
+export enum UserDetailsView {
+ Overview,
+ Comments,
+ Posts,
+ Saved,
+}