Update react-img-mapper to 1.5, translate contat page

This commit is contained in:
Daniele Pancottini
2023-02-17 21:04:46 +01:00
parent af4b0cea03
commit 5cfeb48b11
6 changed files with 21 additions and 52 deletions

View File

@@ -44,7 +44,7 @@ const Footer: FC<Props> = ({ className, pages }) => {
</a>
</Link>
</div>
<div className="col-span-1 lg:col-span-7">
<div className="col-span-1 lg:col-span-6">
<div className="grid md:grid-rows-4 md:grid-cols-3 md:grid-flow-col">
{[...links].map((page: FooterLink) => (
<span key={page.href} className="py-3 md:py-0 md:pb-4">
@@ -66,7 +66,7 @@ const Footer: FC<Props> = ({ className, pages }) => {
))}
</div>
</div>
<div className="col-span-1 lg:col-span-3 flex items-start lg:justify-end text-primary">
<div className="col-span-1 lg:col-span-4 flex items-start lg:justify-end text-primary">
<div className="flex space-x-4 items-center h-10">
<ThemeSwitcher />
<I18nWidget />

View File

@@ -9,7 +9,7 @@ import {
import decadesManifest from '../../../../static_data/decadesManifest.json'
import { useRouter } from 'next/router'
import { useEffect, useRef, useState } from 'react'
import ImageMapper from 'reactjs-img-mapper'
import ImageMapper from 'react-img-mapper'
import Image from 'next/image'
export default function MarkerCardModal(props: {

View File

@@ -114,8 +114,6 @@ const Layout: React.FC<Props> = ({
const { locale = 'it', pathname } = useRouter()
const navBarlinks = navBarLinks[locale as keyof typeof navBarLinks]
console.log(pathname)
return (
<CommerceProvider locale={locale}>
<div className={cn(s.root)}>