feat(WEB-36): improve typings
This commit is contained in:
@@ -8,9 +8,9 @@ import No from "./No";
|
||||
import Sv from "./Sv";
|
||||
|
||||
import type { HeaderProps } from "@/types/components/current/header";
|
||||
import type { LangProps } from "@/types/lang";
|
||||
import { LangParams } from "@/types/params";
|
||||
|
||||
export default function Header({ lang, pathname }: LangProps<HeaderProps>) {
|
||||
export default function Header({ lang, pathname }: LangParams & HeaderProps) {
|
||||
switch (lang) {
|
||||
case langEnum.sv:
|
||||
return <Sv pathname={pathname} />;
|
||||
|
||||
Reference in New Issue
Block a user