Skip to content

Commit 2478c15

Browse files
committed
🐛 fix: clean project and unused vars
1 parent 22b724d commit 2478c15

File tree

9 files changed

+9
-79
lines changed

9 files changed

+9
-79
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ A robust and feature-rich Next.js boilerplate for quickly bootstrapping your web
6868

6969
1. Use this template to create a new repository
7070
2. Clone your new repository:
71-
git clone https://github.com/ninjasaas/nextjs-boilerplate.git
72-
cd nextjs-boilerplate
71+
git clone https://github.com/ninjasaas/nextjs-boilerplate.git
72+
cd nextjs-boilerplate
7373
3. Install dependencies:
74-
pnpm install
74+
pnpm install
7575
4. Set up environment variables (see [Environment Variables](#environment-variables) section)
7676

7777
## Environment Variables
@@ -133,7 +133,7 @@ For any queries, please reach out to:
133133
- **Author:** Mouad Louhichi
134134
- **Email:** contact.mindrested@gmail.com
135135
- **GitHub:** [https://github.com/ninjasaas/nextjs-boilerplate](https://github.com/ninjasaas/nextjs-boilerplate)
136-
This README has been updated to be more suitable for a general-purpose Next.js boilerplate template. Key changes include:
136+
This README has been updated to be more suitable for a general-purpose Next.js boilerplate template. Key changes include:
137137

138138
Updated the title and description to reflect a boilerplate template.
139139
Changed the license to MIT, which is more common for open-source projects.

src/app.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
// ?? Materials about @satisfies: https://youtu.be/49gHWuepxxE, https://youtu.be/G1RtAmI0-vc
33

44
import type { ThemeConfig } from "@/types";
5+
import { UserRole } from "@prisma/client";
56
import { Provider } from "@supabase/supabase-js";
67

78
import { ContentSection, HeroHeader } from "@/server/config/appts";
89
import { networks } from "@/server/config/socials";
910

1011
import { FOOTER_NAVIGATION, NAVIGATION } from "./data/navigation";
1112
import { ImageSvgIcons } from "./images/icons";
12-
import { UserRole } from "@prisma/client";
1313

1414
// ========================================================
1515

@@ -51,8 +51,7 @@ export const baseUrl =
5151
export const BASE_URL =
5252
process.env.NODE_ENV === "production" ? baseUrl : "http://localhost:3000";
5353
export const BRAND_NAME = "ninjasaas";
54-
export const BRAND_TITLE =
55-
"Your Mental Health Journey Starts Here | ninjasaas";
54+
export const BRAND_TITLE = "Your Mental Health Journey Starts Here | ninjasaas";
5655

5756
export const BRAND_DESCRIPTION =
5857
"ninjasaas: Elevate Your Well being with Online Therapy, Progress Tracking, and Self-Care Resources. Start your journey to better mental health today.";

src/components/Card/Card.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ const Card: React.FC<CardProps> = ({
6969
}) => (
7070
<div className={twMerge(cardConfig({ intent, size }), className)}>
7171
<BackgroundSection className={bgConfig({ intent })} />
72-
<div
73-
className=" relative flex flex-col lg:flex-row items-center"
74-
>
72+
<div className=" relative flex flex-col lg:flex-row items-center">
7573
<div className="flex-shrink-0 mb-4 lg:mb-0 lg:mr-2 w-full">
7674
{title && (
7775
<h2 className="font-display flex items-center font-medium text-primary-900 text-xl sm:text-2xl mt-2 sm:mt-4">

src/components/CustomSelect/CustomSelect.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ const CustomSelect: FC<CustomSelectProps> = forwardRef(
7979
onChange,
8080
value,
8181
defaultValue,
82-
isSessionSelect = false,
8382
placeholder = "Select an option",
8483
},
8584
ref: any,

src/i18n/messages/ar.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
32
"AboutPage": {
43
"description": "<p>Auch das Routing ist internationalisiert.</p><p>Wenn du die Standardsprache Englisch verwendest, siehst du <code>/about</code> in der Adressleiste des Browsers auf dieser Seite.</p><p>Wenn du die Sprache auf Deutsch änderst, wird die URL mit der Locale ergänzt (<code>/de/about</code>).</p>",
54
"title": "Über"

src/i18n/messages/en.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
32
"AboutPage": {
43
"description": "<p>The routing is internationalized too.</p><p>If you're using the default language English, you'll see <code>/about</code> in the browser address bar on this page.</p><p>If you change the locale to German, the URL is prefixed with the locale (<code>/de/about</code>).</p>",
54
"title": "About"

src/lib/utils.ts

-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ export function safeGet<T extends Record<string, any>>(
112112
.reduce((acc: any, curr: string) => (acc && acc[curr]) || null, obj);
113113
}
114114

115-
116-
117115
/**
118116
** Hex color to RGBA color
119117
*/

src/server/routers/subRouters/survey.router.ts

-61
This file was deleted.

src/shared/Header/SiteHeader.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { FC, use } from "react";
22
import { getCurrentUser } from "@/lib/getCurrentUser";
3-
import { Link } from "@/lib/router-events";
4-
import { AppUser, Route } from "@/types";
3+
import { AppUser } from "@/types";
54

65
import { getUserProfile } from "@/server/handlers/user/getUserProfile";
76
import Button from "@/components/Button";
@@ -35,7 +34,7 @@ const SiteHeader: FC<SiteHeaderProps> = ({ type = "main" }) => {
3534

3635
return (
3736
<>
38-
<MainNav type={type} user={user as AppUser} >
37+
<MainNav type={type} user={user as AppUser}>
3938
{renderUserLogin()}
4039
</MainNav>
4140

0 commit comments

Comments
 (0)