Skip to content

Commit

Permalink
24
Browse files Browse the repository at this point in the history
  • Loading branch information
bobgus39 committed Jan 16, 2024
1 parent f3946ab commit 7f9bb20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 2 additions & 5 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import "./Header.css";
import { NavLink, useLocation } from "react-router-dom";
import ImgHeader from "../../marielWebPage/img/mariuHeader.png";

function Header() {
const [menu, setMenu] = useState(true);
Expand Down Expand Up @@ -28,11 +29,7 @@ function Header() {
return (
<div className="header">
<NavLink to="/marielWebPage">
<img
className="imgHeader"
src="../../marielWebPage/img/mariuHeader.png"
alt="Forn Mariu"
/>
<img className="imgHeader" src={ImgHeader} alt="Forn Mariu" />
</NavLink>
{menu ? (
<label
Expand Down
8 changes: 2 additions & 6 deletions src/components/WhatsappButton.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";

import Whatsapp from "../../marielWebPage/img/whatsapp.png";
const WhatsappButton = ({ phoneNumber, message }) => {
const handleClick = () => {
const whatsappLink = `https://wa.me/${phoneNumber}?text=${encodeURIComponent(
Expand All @@ -11,11 +11,7 @@ const WhatsappButton = ({ phoneNumber, message }) => {
return (
<button className="btn" onClick={handleClick}>
{" "}
<img
className="whatsapp"
src="../../marielWebPage/img/whatsapp.png"
alt="whatsapp"
/>
<img className="whatsapp" src={Whatsapp} alt="whatsapp" />
</button>
);
};
Expand Down

0 comments on commit 7f9bb20

Please sign in to comment.