Skip to content

Commit 1d6c7be

Browse files
committed
feat(dashboard): Fixes #138 - Dashboard membres et teams
1 parent a232f52 commit 1d6c7be

5 files changed

Lines changed: 21 additions & 8 deletions

File tree

saintBarthVolleyApp/backend/server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const PORT = process.env.PORT || 5000;
99
const MONGO_URI = process.env.MONGO_URI || 'mongodb://127.0.0.1:27017/saintbarthvolley';
1010

1111
// Connexion MongoDB
12-
mongoose.connect(MONGO_URI)
12+
mongoose
13+
.connect(MONGO_URI)
1314
.then(() => {
1415
console.log('MongoDB connected');
1516

@@ -18,4 +19,4 @@ mongoose.connect(MONGO_URI)
1819
console.log(`Server launched on http://localhost:${PORT}`);
1920
});
2021
})
21-
.catch(err => console.error('Error MongoDB:', err));
22+
.catch((err) => console.error('Error MongoDB:', err));
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// const path = require('path')
2-
2+
33
// const buildEslintCommand = (filenames) =>
44
// `eslint --fix ${filenames
55
// .map((f) => `"${path.relative(process.cwd(), f)}"`)
66
// .join(' ')}`
7-
7+
88
// module.exports = {
99
// '*.{js,jsx,ts,tsx}': [buildEslintCommand],
10-
// }
10+
// }

saintBarthVolleyApp/frontend/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export function middleware(req: NextRequest) {
1717

1818
export const config = {
1919
matcher: ["/admin/:path*"],
20-
};
20+
};

saintBarthVolleyApp/frontend/src/app/reset-password/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,13 @@ function ResetPasswordForm() {
120120

121121
export default function ResetPasswordPage() {
122122
return (
123-
<Suspense fallback={<div className="flex min-h-svh items-center justify-center">Chargement...</div>}>
123+
<Suspense
124+
fallback={
125+
<div className="flex min-h-svh items-center justify-center">
126+
Chargement...
127+
</div>
128+
}
129+
>
124130
<ResetPasswordForm />
125131
</Suspense>
126132
);

saintBarthVolleyApp/frontend/src/app/verify-email/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ function VerifyEmailContent() {
7878

7979
export default function VerifyEmailPage() {
8080
return (
81-
<Suspense fallback={<div className="flex min-h-svh items-center justify-center">Chargement...</div>}>
81+
<Suspense
82+
fallback={
83+
<div className="flex min-h-svh items-center justify-center">
84+
Chargement...
85+
</div>
86+
}
87+
>
8288
<VerifyEmailContent />
8389
</Suspense>
8490
);

0 commit comments

Comments
 (0)