From 7ffd43268df2451fc42e4f0f92071ae9c4eea406 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 1 Jun 2022 16:58:19 +0200 Subject: [PATCH] Rename `Form` to `Action`, since they're no longer forms --- components/{FormEventList.tsx => ActionEventList.tsx} | 2 +- .../{FormLoginTelegram.tsx => ActionLoginTelegram.tsx} | 2 +- pages/index.tsx | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename components/{FormEventList.tsx => ActionEventList.tsx} (96%) rename components/{FormLoginTelegram.tsx => ActionLoginTelegram.tsx} (96%) diff --git a/components/FormEventList.tsx b/components/ActionEventList.tsx similarity index 96% rename from components/FormEventList.tsx rename to components/ActionEventList.tsx index 98b3789..b0aa2ca 100644 --- a/components/FormEventList.tsx +++ b/components/ActionEventList.tsx @@ -6,7 +6,7 @@ import { Loading } from "./Loading"; import { Event } from "@prisma/client"; -export function FormEventList(props: HTMLProps) { +export function ActionEventList(props: HTMLProps) { const {t} = useTranslation() const { data, error } = useMyEvents() diff --git a/components/FormLoginTelegram.tsx b/components/ActionLoginTelegram.tsx similarity index 96% rename from components/FormLoginTelegram.tsx rename to components/ActionLoginTelegram.tsx index 2b4d0fd..fd14d55 100644 --- a/components/FormLoginTelegram.tsx +++ b/components/ActionLoginTelegram.tsx @@ -9,7 +9,7 @@ import { useDefinedContext } from "../utils/definedContext" import { TelegramLoginButton } from "./TelegramLoginButton" -export function FormLoginTelegram({className, ...props}: HTMLProps) { +export function ActionLoginTelegram({className, ...props}: HTMLProps) { const { t } = useTranslation("common") const [_, setLogin] = useDefinedContext(LoginContext) const [working, setWorking] = useState(false) diff --git a/pages/index.tsx b/pages/index.tsx index 834f425..3bea7ff 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -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() { {login ? - : - }