Deprecated sessions

This commit is contained in:
Jorge Vargas 2025-02-10 12:40:44 -06:00
parent f4f5b825da
commit d4eb0d1f03
3 changed files with 3 additions and 121 deletions

View file

@ -3,14 +3,8 @@ import { useState, type FormEvent, type SyntheticEvent } from 'react'
import Button from 'components/Button'
import * as m from 'paraglide/messages.js'
import Modal from 'components/Modal'
import apolloClient from '@/graphql/apolloClient'
import toast from 'react-hot-toast'
const loginMutation = gql(`
mutation Login($username: String!, $password: String!) {
login(username: $username, password: $password)
}
`)
import toast from 'react-hot-toast'
export default function LoginBtn() {
const [modalOpen, setModalOpen] = useState(false)
@ -21,14 +15,14 @@ export default function LoginBtn() {
const formData = new FormData(ev.target)
const variables = Object.fromEntries(formData)
mutate({ variables })
/* mutate({ variables })
.then((res) => {
// toast.success(m.emailSuccess())
setModalOpen(false)
})
.catch((err) => {
toast.error(err.message)
})
}) */
}
return (