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 ? - : - }