Add real time messaging
This commit is contained in:
parent
0163eab540
commit
9153ba841d
61 changed files with 882 additions and 230 deletions
|
|
@ -1,6 +1,27 @@
|
|||
import type { Component } from "solid-js";
|
||||
import { useNavigate } from "@solidjs/router";
|
||||
import { createSignal, createEffect, type Component, onMount } from "solid-js";
|
||||
import { dispatch, state } from "../../store/state";
|
||||
import { AuthActionTypes } from "../../store/auth";
|
||||
|
||||
const RegisterView: Component = () => {
|
||||
const [getUsername, setUsername] = createSignal("");
|
||||
const [getEmail, setEmail] = createSignal("");
|
||||
const [getPassword, setPassword] = createSignal("");
|
||||
|
||||
const navigate = useNavigate();
|
||||
|
||||
onMount(() => {
|
||||
dispatch({
|
||||
type: AuthActionTypes.FETCH_REFRESH_START,
|
||||
});
|
||||
});
|
||||
|
||||
createEffect(() => {
|
||||
if (state.auth.loggedIn) {
|
||||
navigate("/app");
|
||||
}
|
||||
});
|
||||
|
||||
return <div></div>;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue