-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70aa420
commit 587ad14
Showing
5 changed files
with
10 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
'use client' | ||
'use server' | ||
import { BellRing, Check } from "lucide-react" | ||
import { Button } from "@/components/ui/button" | ||
import { | ||
|
@@ -17,28 +17,14 @@ import { LoginButton } from './part/login.button' | |
import React, { useState } from 'react' | ||
|
||
|
||
// Login <Pa></Pa>ge | ||
export default async function LoginPage() { | ||
// submit | ||
async function submit(e: React.FormEvent<HTMLFormElement>) { | ||
e.preventDefault() | ||
const data = { | ||
email: '[email protected]', | ||
password: '12345678' | ||
} | ||
const response = await AuthService.login(data.email, data.password) as any | ||
// console.log(response) | ||
} | ||
|
||
return ( | ||
<main> | ||
<section | ||
className='flex flex-col items-center justify-center h-screen gap-4' | ||
> | ||
<form | ||
onSubmit={submit} | ||
// action={'/api/login'} | ||
// method='post' | ||
> | ||
<Card className={cn("w-[380px]")}> | ||
<CardHeader> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters