Skip to content

Commit

Permalink
🚚 fix oauth hrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
heytulsiprasad committed Sep 23, 2020
1 parent 2aa5c99 commit f03b866
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,25 @@ const Footer = ({ type }) => {
);
}

const baseURL = process.env.REACT_APP_BACKEND_URL;
const backendURL =
process.env.NODE_ENV === "production"
? "https://talk-to-network.herokuapp.com"
: "http://localhost:5000";

return (
<FooterParent>
<h2>or continue with these social profiles</h2>
<div className="FooterIcons">
<a href={`${baseURL}/auth/facebook`}>
<a href={`${backendURL}/auth/facebook`}>
<Facebook />
</a>
<a href={`${baseURL}/auth/github`}>
<a href={`${backendURL}/auth/github`}>
<GitHub />
</a>
<a href={`${baseURL}/auth/google`}>
<a href={`${backendURL}/auth/google`}>
<Google />
</a>
<a href={`${baseURL}/auth/twitter`}>
<a href={`${backendURL}/auth/twitter`}>
<Twitter />
</a>
</div>
Expand Down

1 comment on commit f03b866

@vercel
Copy link

@vercel vercel bot commented on f03b866 Sep 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.