File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
import axios from 'axios'
2
2
// 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'
5
5
6
6
const $api = axios . create ( {
7
7
// withCredentials: true,
Original file line number Diff line number Diff line change @@ -5,17 +5,12 @@ import Image from "next/image";
5
5
6
6
import logo from "@/public/images/logo.svg" ;
7
7
import { useState } from "react" ;
8
- import { ModalContacts } from "../ModalContacts" ;
9
8
import { AboutPopover } from "../../ui/AboutPopover" ;
10
9
11
10
const Header : React . FC = ( ) => {
12
- const [ open , setOpen ] = useState < boolean > ( false ) ;
13
11
//Якорный элемент для поповера О КОМПАНИИ
14
12
const [ anchorEl , setAnchorEl ] = useState < HTMLButtonElement | null > ( null ) ;
15
13
16
- const handleOpenModal = ( ) => {
17
- setOpen ( true ) ;
18
- } ;
19
14
const handleClickAboutButton = ( event : React . MouseEvent < HTMLButtonElement > ) => {
20
15
setAnchorEl ( event . currentTarget ) ;
21
16
} ;
@@ -35,15 +30,14 @@ const Header: React.FC = () => {
35
30
< Link href = { "/" } >
36
31
< Image width = { 103 } height = { 64 } alt = "logo" src = { logo } />
37
32
</ Link >
38
- < button
33
+ < Link
39
34
className = { styles . contacts }
40
- onClick = { handleOpenModal }
35
+ href = { '/addresses' }
41
36
>
42
37
КОНТАКТЫ
43
- </ button >
38
+ </ Link >
44
39
</ div >
45
40
</ div >
46
- < ModalContacts open = { open } setOpen = { setOpen } />
47
41
</ header >
48
42
) ;
49
43
} ;
You can’t perform that action at this time.
0 commit comments