Skip to content

Commit

Permalink
Omit unused region property
Browse files Browse the repository at this point in the history
The property `region` is not used by the child components and does not need to be passed along.
  • Loading branch information
lvonlanthen committed Jan 2, 2025
1 parent 6312441 commit 3db2d98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { DefaultParams } from '@/app/[lang]/[region]';
import { WebsiteLanguage } from '@/i18n';
import { Translator } from '@socialincome/shared/src/utils/i18n';
import { Typography } from '@socialincome/ui';
import { FontColor } from '@socialincome/ui/src/interfaces/color';

export async function Hero({ lang }: DefaultParams) {
export async function Hero({ lang }: { lang: WebsiteLanguage }) {
const translator = await Translator.getInstance({
language: lang,
namespaces: ['website-techstack'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use client';

import { DefaultParams } from '@/app/[lang]/[region]';
import TechCard from '@/app/[lang]/[region]/(website)/techstack/(sections)/techcard';
import { SpinnerIcon } from '@/components/logos/spinner-icon';
import { useTranslator } from '@/hooks/useTranslator';
import { WebsiteLanguage } from '@/i18n';
import { Tabs, TabsList, TabsTrigger } from '@socialincome/ui';
import { useState } from 'react';

Expand All @@ -15,7 +15,7 @@ type TechEntryJSON = {
donated: boolean;
};

export function TechList({ lang }: DefaultParams) {
export function TechList({ lang }: { lang: WebsiteLanguage }) {
const [isDonated, setIsDonated] = useState(false);

const translator = useTranslator(lang, 'website-techstack');
Expand Down
6 changes: 3 additions & 3 deletions website/src/app/[lang]/[region]/(website)/techstack/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { DefaultPageProps } from '@/app/[lang]/[region]';
import { Hero } from './(sections)/hero';
import { TechList } from './(sections)/techlist';

export default async function Page({ params: { lang, region } }: DefaultPageProps) {
export default async function Page({ params: { lang } }: DefaultPageProps) {
return (
<div className="space-y-24">
<Hero lang={lang} region={region} />
<TechList lang={lang} region={region} />
<Hero lang={lang} />
<TechList lang={lang} />
</div>
);
}

0 comments on commit 3db2d98

Please sign in to comment.