Skip to content

Commit

Permalink
fixed eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JeikZim committed Feb 12, 2024
1 parent fb0f673 commit 4c55248
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions rb_test_client/src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ function SocialMediaIconsGroup() {
return (
<div className={s.social_media}>
<div className={s.social_media_icon}>
<a target="_blank" href={DATA.LINKS.INSTAGRAM}>
<a target="_blank" href={DATA.LINKS.INSTAGRAM} rel="noreferrer" >
<img src="./images/ic-instagram.svg" alt="Instagram icon" />
</a>
</div>
<div className={s.social_media_icon}>
<a target="_blank" href={DATA.LINKS.WHATS_APP}>
<a target="_blank" href={DATA.LINKS.WHATS_APP} rel="noreferrer" >
<img src="./images/ic-whats_app_2.svg" alt="WhatsApp icon" />
</a>
</div>
<div className={s.social_media_icon}>
<a target="_blank" href={DATA.LINKS.TELEGRAM}>
<a target="_blank" href={DATA.LINKS.TELEGRAM} rel="noreferrer" >
<img src="./images/ic-telegram.png" alt="Telegram icon" />
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion rb_test_client/src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect, useState } from "react";
import React, { useContext } from "react";
import { HandySvg } from "handy-svg";

import BookButton from "./modules/BookingButton";
Expand Down
4 changes: 2 additions & 2 deletions rb_test_client/src/components/Modules/BookingButton.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback } from "react";
import PopUp, { openPopUp } from "../PopUp";
import { openPopUp } from "../PopUp";

import DATA from "../../data/components/modules/buttons.json";

Expand All @@ -16,7 +16,7 @@ function BookButton(props) {
}

openPopUp();
}, []);
}, [props.inMenu]);

return (
<button
Expand Down
4 changes: 2 additions & 2 deletions rb_test_client/src/components/PopUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const closePopUp = () => {
};

function PopUp() {
let { loading, request, error, clearError } = useHttp();
let {/* loading,*/ request /*, error, clearError*/ } = useHttp();

const [form, setForm] = useState({
fullname: "",
Expand Down Expand Up @@ -59,7 +59,7 @@ function PopUp() {
} catch (err) {
console.error(err.message);
}
}, [form, setForm]);
}, [form, setForm, request]);

return (
<div className={`${s.wrapper} ${s.is_closed}`}>
Expand Down
4 changes: 2 additions & 2 deletions rb_test_client/src/components/modules/BookingButton.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback } from "react";
import PopUp, { openPopUp } from "../PopUp";
import { openPopUp } from "../PopUp";

import DATA from "../../data/components/modules/buttons.json";

Expand All @@ -16,7 +16,7 @@ function BookButton(props) {
}

openPopUp();
}, []);
}, [props.inMenu]);

return (
<button
Expand Down

0 comments on commit 4c55248

Please sign in to comment.