Skip to content

Commit

Permalink
Add company name to footer components
Browse files Browse the repository at this point in the history
Integrated company name from environment variables into `FooterMain` and `FooterDesktop` components. Updated `envHelper` to include `companyName` for dynamic rendering.
  • Loading branch information
leolabdev committed Sep 21, 2024
1 parent 744dc79 commit 0d75ce9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend-next-migration/src/shared/const/envHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
export const envHelper = {
isDevMode: process.env.NODE_ENV === 'development',
apiLink : process.env.NEXT_PUBLIC_API_LINK || '',
appDomain : process.env.NEXT_PUBLIC_APP_DOMAIN || ''
appDomain : process.env.NEXT_PUBLIC_APP_DOMAIN || '',
companyName: process.env.COMPANY_NAME || "Psyche's Royale Gaming ry"
} as const;
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const Template: ComponentStory<typeof FooterDesktop> = () => (
cookies: "Cookies",
privacy: "Privacy",
currentYear: new Date().getFullYear(),
companyName: "Psyche's Royale Gaming ry"
}
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {useParams} from "next/navigation";
import FooterDesktop from "../FooterDesktop/FooterDesktop";
import {socialIconLinks} from "../../model/data/socialSectionMenu";
import {useClientTranslation} from "@/shared/i18n";
import {envHelper} from "@/shared/const/envHelper";

export const Footer = () => {
const params = useParams();
Expand All @@ -20,6 +21,7 @@ export const Footer = () => {
privacy: "Privacy",
cookies: "Cookies",
consent: "Consent",
companyName: envHelper.companyName
}
}
socialIconLinks={socialIconLinks}
Expand Down

0 comments on commit 0d75ce9

Please sign in to comment.