diff --git a/src/App.tsx b/src/App.tsx index 1159527..01919a8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,5 @@ import React, { Fragment } from "react" -import Alert from "react-bootstrap/Alert" import Container from "react-bootstrap/Container" import Nav from "react-bootstrap/Nav" import Navbar from "react-bootstrap/Navbar" @@ -89,10 +88,7 @@ export default class App extends React.Component { {loggedIn ? ( ) : ( -
- Log in to see this content. -
)} diff --git a/src/Home.tsx b/src/Home.tsx index e4af654..6944e6e 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -4,6 +4,7 @@ import Col from "react-bootstrap/Col" import Container from "react-bootstrap/Container" import Image from "react-bootstrap/Image" import Row from "react-bootstrap/Row" +import Alert from "react-bootstrap/Alert" import BlogCard from "./home/BlogCard" import ContributeCard from "./home/ContributeCard" @@ -14,8 +15,10 @@ import styles from "./Home.module.scss" export default class Home extends React.Component { render(): React.ReactElement { + const showAlert = window.location.pathname !== "/" return ( + { showAlert && Log in to see this content. }