Skip to content

Commit 7b6f9b3

Browse files
committed
fix: исправлние багов
1 parent 8ee4899 commit 7b6f9b3

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

http/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from 'axios'
22
// export const API_URL = 'https://68038e8e0a99cb7408ec5a5b.mockapi.io/'
3-
export const API_URL = 'http://localhost:3000/api'
4-
// export const API_URL = 'https://aeaea.vercel.app/api'
3+
// export const API_URL = 'http://localhost:3000/api'
4+
export const API_URL = 'https://aeaea.vercel.app/api'
55

66
const $api = axios.create({
77
// withCredentials: true,

shared/components/shared/Header/Header.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,12 @@ import Image from "next/image";
55

66
import logo from "@/public/images/logo.svg";
77
import { useState } from "react";
8-
import { ModalContacts } from "../ModalContacts";
98
import { AboutPopover } from "../../ui/AboutPopover";
109

1110
const Header: React.FC = () => {
12-
const [open, setOpen] = useState<boolean>(false);
1311
//Якорный элемент для поповера О КОМПАНИИ
1412
const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null);
1513

16-
const handleOpenModal = () => {
17-
setOpen(true);
18-
};
1914
const handleClickAboutButton = (event: React.MouseEvent<HTMLButtonElement>) => {
2015
setAnchorEl(event.currentTarget);
2116
};
@@ -35,15 +30,14 @@ const Header: React.FC = () => {
3530
<Link href={"/"}>
3631
<Image width={103} height={64} alt="logo" src={logo} />
3732
</Link>
38-
<button
33+
<Link
3934
className={styles.contacts}
40-
onClick={handleOpenModal}
35+
href={'/addresses'}
4136
>
4237
КОНТАКТЫ
43-
</button>
38+
</Link>
4439
</div>
4540
</div>
46-
<ModalContacts open={open} setOpen={setOpen} />
4741
</header>
4842
);
4943
};

0 commit comments

Comments
 (0)