feat: make all forms responsive

This commit is contained in:
Sonny
2023-06-08 23:25:55 +02:00
parent b2a6b3605b
commit 1ae657daa8
9 changed files with 48 additions and 55 deletions

View File

@@ -9,14 +9,14 @@ import TextBox from "components/TextBox";
import PATHS from "constants/paths";
import useAutoFocus from "hooks/useAutoFocus";
import { redirectWithoutClientCache } from "utils/client";
import { HandleAxiosError } from "utils/front";
import getUserCategoriesCount from "lib/category/getUserCategoriesCount";
import getUser from "lib/user/getUser";
import styles from "styles/create.module.scss";
import { redirectWithoutClientCache } from "utils/client";
import { HandleAxiosError } from "utils/front";
import { getSession } from "utils/session";
import styles from "styles/form.module.scss";
function CreateCategory({ categoriesCount }: { categoriesCount: number }) {
const autoFocusRef = useAutoFocus();
const router = useRouter();
@@ -52,7 +52,7 @@ function CreateCategory({ categoriesCount }: { categoriesCount: number }) {
};
return (
<PageTransition className="page-category-create">
<PageTransition className={styles["form-container"]}>
<FormLayout
title="Créer une catégorie"
errorMessage={error}