Add real time messaging

This commit is contained in:
Aslan 2026-01-11 14:17:34 -05:00
parent 0163eab540
commit 9153ba841d
61 changed files with 882 additions and 230 deletions

View file

@ -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>;
};