Skip to content

Commit 4869601

Browse files
authored
docker frontend build fixes (#61)
1 parent 980ef0c commit 4869601

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

{{cookiecutter.project_slug}}/frontend/app/components/settings/Profile.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const renderError = (type: LiteralUnion<keyof RegisterOptions, string>) => {
1818
switch (type) {
1919
case "required":
2020
return <div className={style}>This field is required.</div>;
21-
case "minLength" || "maxLength":
21+
case "minLength":
22+
case "maxLength":
2223
return (
2324
<div className={style}>
2425
Your password must be between 8 and 64 characters long.

{{cookiecutter.project_slug}}/frontend/app/components/settings/Security.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ const renderError = (type: LiteralUnion<keyof RegisterOptions, string>) => {
3939
switch (type) {
4040
case "required":
4141
return <div className={style}>This field is required.</div>;
42-
case "minLength" || "maxLength":
42+
case "minLength":
43+
case "maxLength":
4344
return (
4445
<div className={style}>
4546
Your password must be between 8 and 64 characters long.

{{cookiecutter.project_slug}}/frontend/app/login/page.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const renderError = (type: LiteralUnion<keyof RegisterOptions, string>) => {
2626
switch (type) {
2727
case "required":
2828
return <div className={style}>This field is required.</div>;
29-
case "minLength" || "maxLength":
29+
case "minLength":
30+
case "maxLength":
3031
return (
3132
<div className={style}>
3233
Your password must be between 8 and 64 characters long.

{{cookiecutter.project_slug}}/frontend/app/reset-password/page.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const renderError = (type: LiteralUnion<keyof RegisterOptions, string>) => {
2121
switch (type) {
2222
case "required":
2323
return <div className={style}>This field is required.</div>;
24-
case "minLength" || "maxLength":
24+
case "minLength":
25+
case "maxLength":
2526
return (
2627
<div className={style}>
2728
Your password must be between 8 and 64 characters long.

{{cookiecutter.project_slug}}/frontend/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@reduxjs/toolkit": "^1.9.6",
1919
"@tailwindcss/aspect-ratio": "^0.4.2",
2020
"@tailwindcss/forms": "^0.5.6",
21+
"@tailwindcss/postcss": "^4.0.9",
2122
"@tailwindcss/typography": "^0.5.10",
2223
"gray-matter": "^4.0.3",
2324
"next": "^14.0.4",
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
plugins: {
3-
tailwindcss: {},
43
autoprefixer: {},
4+
'@tailwindcss/postcss': {},
55
},
66
};

{{cookiecutter.project_slug}}/frontend/tailwind.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Config } from "tailwindcss";
2+
import colors from "tailwindcss/colors";
23

3-
const colors: import("tailwindcss").Config = require("tailwindcss/colors");
44
module.exports = {
55
content: [
66
"./pages/**/*.{js,ts,jsx,tsx,mdx}",

0 commit comments

Comments
 (0)