Skip to content

Commit

Permalink
Merge pull request #109 from soumalyatheking22012001/dev
Browse files Browse the repository at this point in the history
Fixed typos
  • Loading branch information
opticSquid authored May 15, 2021
2 parents 942e0c3 + c3e6f51 commit a3e6ab0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
20 changes: 11 additions & 9 deletions src/components/homePage/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import "../../assets/styles/verticalNavigation.css";
import { Link, useLocation } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faCommentDots,
// faCommentDots,
faHome,
faInfoCircle,
faMapMarkedAlt,
// faMapMarkedAlt,
} from "@fortawesome/free-solid-svg-icons";

/* the vertical location bar */
Expand Down Expand Up @@ -59,20 +59,22 @@ function Navigation() {
</div>
</nav>
<nav className="navigation--horizontal">
<div>
<FontAwesomeIcon icon={faHome} />
</div>
<div>
<Link to="/">
<div>
<FontAwesomeIcon icon={faHome} />
</div>
</Link>
{/* <div>
<FontAwesomeIcon icon={faMapMarkedAlt} />
</div>
</div> */}
<Link to="/about">
<div>
<FontAwesomeIcon icon={faInfoCircle} />
</div>
</Link>
<div>
{/* <div>
<FontAwesomeIcon icon={faCommentDots} />
</div>
</div> */}
</nav>
</>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/homePage/Services.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function Services() {
const errors = (err) => {
setLoading(false);
alert(
"Location Permission Denied! Emable permission to detect location",
"Location Permission Denied! Enable permission to detect location",
err
);
};
Expand All @@ -101,7 +101,7 @@ function Services() {
navigator.geolocation.getCurrentPosition(fetchData, errors, options);
} else if (result.state === "denied") {
alert(
"Location Permission Denied! Emable permission to detect location"
"Location Permission Denied! Enable permission to detect location"
);
defultonPermissionDenied();
}
Expand Down
6 changes: 3 additions & 3 deletions src/pages/AboutPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import axios from "axios";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPlus } from "@fortawesome/free-solid-svg-icons";
import { useHistory } from "react-router-dom";
import About from './About';
import About from "./About";
/*
this is the hopepage component
it acts as a wrapper to all the other components
Expand Down Expand Up @@ -44,7 +44,7 @@ function HomePage() {
};
const errors = (err) => {
alert(
"Location Permission Denied! Emable permission to detect location",
"Location Permission Denied! Enable permission to detect location",
err
);
};
Expand All @@ -63,7 +63,7 @@ function HomePage() {
navigator.geolocation.getCurrentPosition(fetchData, errors, options);
} else if (result.state === "denied") {
alert(
"Location Permission Denied! Emable permission to detect location"
"Location Permission Denied! Enable permission to detect location"
);
}
result.onchange = function () {};
Expand Down

0 comments on commit a3e6ab0

Please sign in to comment.