mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init coursechapter + elements interface
This commit is contained in:
parent
f492baf276
commit
19b7dd650e
16 changed files with 542 additions and 75 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import Router from "next/router";
|
||||
import React from "react";
|
||||
import { Header } from "../components/ui/header";
|
||||
import Layout from "../components/ui/layout";
|
||||
|
|
@ -12,7 +13,13 @@ const Login = () => {
|
|||
e.preventDefault();
|
||||
console.log({ email, password });
|
||||
alert(JSON.stringify({ email, password }));
|
||||
loginAndGetToken(email, password);
|
||||
try {
|
||||
loginAndGetToken(email, password);
|
||||
Router.push("/");
|
||||
}
|
||||
catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
};
|
||||
|
||||
const handleEmailChange = (e: any) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue