mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
Rename Form
to Action
, since they're no longer forms
This commit is contained in:
parent
2d10d48068
commit
7ffd43268d
3 changed files with 6 additions and 6 deletions
|
@ -6,7 +6,7 @@ import { Loading } from "./Loading";
|
||||||
import { Event } from "@prisma/client";
|
import { Event } from "@prisma/client";
|
||||||
|
|
||||||
|
|
||||||
export function FormEventList(props: HTMLProps<HTMLFormElement>) {
|
export function ActionEventList(props: HTMLProps<HTMLFormElement>) {
|
||||||
const {t} = useTranslation()
|
const {t} = useTranslation()
|
||||||
const { data, error } = useMyEvents()
|
const { data, error } = useMyEvents()
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { useDefinedContext } from "../utils/definedContext"
|
||||||
import { TelegramLoginButton } from "./TelegramLoginButton"
|
import { TelegramLoginButton } from "./TelegramLoginButton"
|
||||||
|
|
||||||
|
|
||||||
export function FormLoginTelegram({className, ...props}: HTMLProps<HTMLFormElement>) {
|
export function ActionLoginTelegram({className, ...props}: HTMLProps<HTMLFormElement>) {
|
||||||
const { t } = useTranslation("common")
|
const { t } = useTranslation("common")
|
||||||
const [_, setLogin] = useDefinedContext(LoginContext)
|
const [_, setLogin] = useDefinedContext(LoginContext)
|
||||||
const [working, setWorking] = useState<boolean>(false)
|
const [working, setWorking] = useState<boolean>(false)
|
|
@ -3,8 +3,8 @@ import { useTranslation } from 'next-i18next'
|
||||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
||||||
import { LoginContext } from '../contexts/login';
|
import { LoginContext } from '../contexts/login';
|
||||||
import { useDefinedContext } from '../utils/definedContext';
|
import { useDefinedContext } from '../utils/definedContext';
|
||||||
import { FormLoginTelegram } from '../components/FormLoginTelegram';
|
import { ActionLoginTelegram } from '../components/ActionLoginTelegram';
|
||||||
import { FormEventList } from '../components/FormEventList';
|
import { ActionEventList } from '../components/ActionEventList';
|
||||||
|
|
||||||
|
|
||||||
export async function getStaticProps(context: NextPageContext) {
|
export async function getStaticProps(context: NextPageContext) {
|
||||||
|
@ -31,11 +31,11 @@ export default function PageIndex() {
|
||||||
</h2>
|
</h2>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
{login ?
|
{login ?
|
||||||
<FormEventList
|
<ActionEventList
|
||||||
className="hero-action"
|
className="hero-action"
|
||||||
/>
|
/>
|
||||||
:
|
:
|
||||||
<FormLoginTelegram
|
<ActionLoginTelegram
|
||||||
className="hero-action"
|
className="hero-action"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue