1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 14:44:21 +00:00

Rename Form to Action, since they're no longer forms

This commit is contained in:
Steffo 2022-06-01 16:58:19 +02:00
parent 2d10d48068
commit 7ffd43268d
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@ import { Loading } from "./Loading";
import { Event } from "@prisma/client";
export function FormEventList(props: HTMLProps<HTMLFormElement>) {
export function ActionEventList(props: HTMLProps<HTMLFormElement>) {
const {t} = useTranslation()
const { data, error } = useMyEvents()

View file

@ -9,7 +9,7 @@ import { useDefinedContext } from "../utils/definedContext"
import { TelegramLoginButton } from "./TelegramLoginButton"
export function FormLoginTelegram({className, ...props}: HTMLProps<HTMLFormElement>) {
export function ActionLoginTelegram({className, ...props}: HTMLProps<HTMLFormElement>) {
const { t } = useTranslation("common")
const [_, setLogin] = useDefinedContext(LoginContext)
const [working, setWorking] = useState<boolean>(false)

View file

@ -3,8 +3,8 @@ import { useTranslation } from 'next-i18next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { LoginContext } from '../contexts/login';
import { useDefinedContext } from '../utils/definedContext';
import { FormLoginTelegram } from '../components/FormLoginTelegram';
import { FormEventList } from '../components/FormEventList';
import { ActionLoginTelegram } from '../components/ActionLoginTelegram';
import { ActionEventList } from '../components/ActionEventList';
export async function getStaticProps(context: NextPageContext) {
@ -31,11 +31,11 @@ export default function PageIndex() {
</h2>
</hgroup>
{login ?
<FormEventList
<ActionEventList
className="hero-action"
/>
:
<FormLoginTelegram
<ActionLoginTelegram
className="hero-action"
/>
}