feat: init coursechapter + elements interface

This commit is contained in:
swve 2022-10-22 23:03:36 +02:00
parent f492baf276
commit 19b7dd650e
16 changed files with 542 additions and 75 deletions

View file

@ -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) => {