Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions server/server/database/test_data/page_html_dummy.sql
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,6 @@ VALUES
" || strftime('%Y','now') || " Rochester Institute of Technology, All Rights Reserved
</h5>
</div>
<div id='version' class='column' style='text-align:right;'>
<h5>
<a href='https://github.com/RIT-Software-Engineering/RIT-SE-Senior-Project'
target='_blank' rel='noreferrer'>
v1.8.1
</a>
</h5>
</div>
</div>
</div>"
);
16 changes: 14 additions & 2 deletions ui/src/components/shared/allPages/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ function Footer() {
const [footerHtml, setFooterHtml] = useState("");
const [isLoading, setIsLoading] = useState(true);

const signedIn = user && Object.keys(user).length > 0 && user.user;
useEffect(() => {

const signedIn = user && Object.keys(user).length > 0 && user.user;

const footerName = signedIn ? "loggedInFooter" : "loggedOutFooter";

setIsLoading(true);
Expand Down Expand Up @@ -47,6 +46,19 @@ function Footer() {
return (
<div id="footer">
{footerHtml ? <InnerHTML html={footerHtml} /> : null}
{signedIn && (
<div id="version" className="ui container" style={{ textAlign: "right" }}>
<h5>
<a
href="https://github.com/RIT-Software-Engineering/RIT-SE-Senior-Project"
target="_blank"
rel="noreferrer"
>
v1.8.1
</a>
</h5>
</div>
)}
</div>
);
}
Expand Down