From 2ada2c45b892aa2c56f1bcfc202506ac45786e85 Mon Sep 17 00:00:00 2001 From: Jib Date: Wed, 3 Jan 2024 09:22:17 -0500 Subject: [PATCH] [Bugfix]: fixed project_name generation for cookiecutter in Footer.tsx (#8) --- .../frontend/app/components/Footer.tsx | 3 +-- .../frontend/app/lib/utilities/generic.ts | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/frontend/app/components/Footer.tsx b/{{cookiecutter.project_slug}}/frontend/app/components/Footer.tsx index a7eb703..ebe56de 100644 --- a/{{cookiecutter.project_slug}}/frontend/app/components/Footer.tsx +++ b/{{cookiecutter.project_slug}}/frontend/app/components/Footer.tsx @@ -1,8 +1,7 @@ "use client" import Link from "next/link" - -const siteName: string = "{{cookiecutter.project_name}}" +import { siteName } from "../lib/utilities/generic" const githubIcon = () => { return ( diff --git a/{{cookiecutter.project_slug}}/frontend/app/lib/utilities/generic.ts b/{{cookiecutter.project_slug}}/frontend/app/lib/utilities/generic.ts index daff9eb..e211a70 100644 --- a/{{cookiecutter.project_slug}}/frontend/app/lib/utilities/generic.ts +++ b/{{cookiecutter.project_slug}}/frontend/app/lib/utilities/generic.ts @@ -46,6 +46,8 @@ function tokenParser(token: string) { return JSON.parse(Buffer.from(token.split(".")[1], "base64").toString()) } +const siteName = "{{ cookiecutter.project_name }}" + export { generateUUID, getTimeInSeconds, @@ -53,4 +55,5 @@ export { getKeyByValue, isValidHttpUrl, tokenParser, + siteName, }