Skip to content

Commit

Permalink
Merge pull request #114 from silvareal/server-change
Browse files Browse the repository at this point in the history
Server change
  • Loading branch information
deven96 authored Nov 21, 2020
2 parents 2baf9ea + 0209c33 commit 97190f6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
7 changes: 6 additions & 1 deletion src/components/searchList/SearchList.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ const SearchList = (props) => {
);
})
) : (
<h3 className="mt-5 mb-5 pt-5 pb-5 text-center">No result Found</h3>
<h3
className="mt-5 mb-5 pt-5 pb-5 text-center"
style={{ margin: "0 auto" }}
>
No result Found
</h3>
)}
</>
);
Expand Down
8 changes: 7 additions & 1 deletion src/components/trendingCarousel/TrendingCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TrendingCarousel extends Component {

axios(options)
.then((res) => {
console.log(res)
console.log(res);
this.setState({
trending: res.data,
isLoading: false
Expand Down Expand Up @@ -142,6 +142,12 @@ class TrendingCarousel extends Component {
this.openModal(trendingMovie.referral_id);
}}
alt={trendingMovie.name}
onError={(e) => (
// eslint-disable-next-line
(e.target.onerror = null),
(e.target.src =
"https://raw.githubusercontent.com/Go-phie/gophie-web/master/public/no-pic.png")
)}
src={
trendingMovie.cover_photo_link
? trendingMovie.cover_photo_link
Expand Down
18 changes: 10 additions & 8 deletions src/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* eslint-disable react/display-name */
import { disableBodyScroll, enableBodyScroll } from "body-scroll-lock";
import {
disableBodyScroll,
enableBodyScroll
} from "body-scroll-lock";

export function isImageURL(url) {
return (
Expand All @@ -8,8 +11,7 @@ export function isImageURL(url) {
);
}

export const tourSteps = [
{
export const tourSteps = [{
selector: '[data-tour="my-first-step"]',
content: `Welcome to Gophie. It is a free movie download site without ads created using the power of web scraping by Bisoncorps.`
},
Expand Down Expand Up @@ -41,13 +43,13 @@ export const tourSteps = [

let nm = new Map();
//nm.set("Styx", "mycoolmoviez");
nm.set("Server1", "netnaija");
nm.set("Server2", "animeout");
nm.set("Server1", "fzmovies");
nm.set("Server2", "takanimelist");
nm.set("Server3", "besthdmovies");
nm.set("Server4", "tvseries");
nm.set("Server5", "fzmovies");
nm.set("Server5", "netnaija");
nm.set("Server6", "kdramahood");
nm.set("Server7", "takanimelist");
nm.set("Server7", "animeout");

export const nameToEngineMap = nm;

Expand All @@ -67,4 +69,4 @@ export const API_ENDPOINTS = {
};

export const disableBody = (target) => disableBodyScroll(target);
export const enableBody = (target) => enableBodyScroll(target);
export const enableBody = (target) => enableBodyScroll(target);

0 comments on commit 97190f6

Please sign in to comment.