Skip to content

Commit f094683

Browse files
authored
chore: review and tweak text information (#185)
1 parent 81802d0 commit f094683

File tree

3 files changed

+43
-38
lines changed

3 files changed

+43
-38
lines changed

src/app/manifest.webmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370
},
371371
{
372372
"src": "pwa/ios/50.png",
373-
"sizes": "50x50"
373+
"sizes": "50x50"
374374
},
375375
{
376376
"src": "pwa/ios/57.png",

src/components/footer.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
"use client";
22

3-
import { useDictionary } from "@/contexts/dictionary-provider";
3+
import { useDictionary, useLang } from "@/contexts/dictionary-provider";
44
import Image from "next/image";
55
import SocialIcon from "@/components/social-icon";
66
import Link from "next/link";
77
import { horizontalPadding } from "@/lib/styling";
88

99
const Footer = () => {
1010
const dict = useDictionary();
11+
const lang = useLang();
1112

1213
return (
1314
<div className={`bg-[#EBEBEB] ${horizontalPadding}`}>
@@ -63,7 +64,11 @@ const Footer = () => {
6364
{section.items.map((item, index) => (
6465
<li key={index} className="text-sm text-gray">
6566
<Link
66-
href={section.links?.[index] ?? "#"}
67+
href={
68+
(section.links?.[index]?.startsWith("http") ?? "#")
69+
? (section.links?.[index] ?? "#")
70+
: `/${lang}${section.links?.[index] ?? "#"}`
71+
}
6772
className="transition-colors hover:text-black/60"
6873
{...(section.links?.[index]?.startsWith("http") && {
6974
target: "_blank",

0 commit comments

Comments
 (0)