Merged in feature/refactor-lang (pull request #387)

feat: SW-238 Avoid prop drilling of lang

Approved-by: Michael Zetterberg
This commit is contained in:
Niclas Edenvin
2024-08-14 11:00:20 +00:00
parent 35128dbf44
commit e67212bd94
94 changed files with 378 additions and 322 deletions
@@ -6,12 +6,11 @@ import Points from "./Points"
import styles from "./stats.module.css"
import type { UserProps } from "@/types/components/myPages/user"
import type { LangParams } from "@/types/params"
export default function Stats({ user, lang }: UserProps & LangParams) {
export default function Stats({ user }: UserProps) {
return (
<section className={styles.stats}>
<Points user={user} lang={lang} />
<Points user={user} />
<Divider variant="default" color="pale" />
<ExpiringPoints user={user} />
</section>