-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve remaining threads in pr request
- Loading branch information
Moa
committed
Nov 21, 2024
1 parent
57308b2
commit c609073
Showing
7 changed files
with
36 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import { RuleCardListSkeleton } from '@/components/rules/RuleCardListSkeleton'; | ||
|
||
export default function RulesSkeleton() { | ||
return ( | ||
<> | ||
<RuleCardListSkeleton /> | ||
</> | ||
); | ||
return <RuleCardListSkeleton />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
import { RuleCardList } from '@/components/rules/RuleCardList'; | ||
import { rulesMockdata } from '@/mock-data/rules'; | ||
import { getTranslations, unstable_setRequestLocale } from 'next-intl/server'; | ||
import { Suspense } from 'react'; | ||
import { getTranslations, setRequestLocale } from 'next-intl/server'; | ||
|
||
export async function generateMetadata({ | ||
params: { locale }, | ||
params, | ||
}: { | ||
params: { locale: string }; | ||
params: Promise<{ locale: string }>; | ||
}) { | ||
const { locale } = await params; | ||
|
||
const t = await getTranslations({ locale, namespace: 'layout' }); | ||
|
||
return { | ||
title: t('rules'), | ||
}; | ||
} | ||
|
||
export default function RulesPage({ | ||
params: { locale }, | ||
export default async function RulesPage({ | ||
params, | ||
}: { | ||
params: { locale: string }; | ||
params: Promise<{ locale: string }>; | ||
}) { | ||
unstable_setRequestLocale(locale); | ||
return ( | ||
<> | ||
<RuleCardList className='p4' rules={rulesMockdata} /> | ||
</> | ||
); | ||
const { locale } = await params; | ||
|
||
setRequestLocale(locale); | ||
|
||
return <RuleCardList rules={rulesMockdata} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters