Skip to content

Commit c03bae0

Browse files
author
Hunter Simpson
committed
Merge branch 'days-left' of github.com:gordon-cs/gordon-360-ui into days-left
2 parents 0582160 + 1d00b57 commit c03bae0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/components/Header/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const GordonHeader = ({ onDrawerToggle }) => {
9292
buttonClicked={() => setDialog(null)}
9393
buttonName={'Okay'}
9494
>
95+
<br />
9596
{isOffline
9697
? 'That page is not available offline. Please reconnect to internet to access this feature.'
9798
: 'That page is only available to authenticated users. Please log in to access it.'}

src/components/Nav/components/NavLinks/index.jsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import PeopleIcon from '@mui/icons-material/People';
77
import WorkIcon from '@mui/icons-material/Work';
88
import { Divider, List } from '@mui/material';
99
import RecIMIcon from '@mui/icons-material/SportsFootball';
10+
import TranscriptIcon from '@mui/icons-material/Receipt';
1011
import GordonDialogBox from 'components/GordonDialogBox';
1112
import GordonNavButton from 'components/NavButton';
1213
import PaletteSwitcherDialog from 'components/PaletteSwitcherDialog';
@@ -36,7 +37,7 @@ const GordonNavLinks = ({ onLinkClick }) => {
3637
break;
3738
case 'unauthorized':
3839
message = 'That page is only available to authenticated users. Please log in to access it.';
39-
title = 'Unavailable Offline';
40+
title = 'Login Required';
4041
break;
4142
default:
4243
message =
@@ -52,6 +53,7 @@ const GordonNavLinks = ({ onLinkClick }) => {
5253
buttonClicked={() => setDialog(null)}
5354
buttonName={'Okay'}
5455
>
56+
<br />
5557
{message}
5658
</GordonDialogBox>
5759
);
@@ -67,6 +69,16 @@ const GordonNavLinks = ({ onLinkClick }) => {
6769
/>
6870
);
6971

72+
const guestTranscriptButton = !isAuthenticated ? (
73+
<GordonNavButton
74+
onLinkClick={onLinkClick}
75+
linkName="Guest Transcript"
76+
linkPath="Transcript"
77+
LinkIcon={TranscriptIcon}
78+
divider={false}
79+
/>
80+
) : null;
81+
7082
const involvementsButton = (
7183
<GordonNavButton
7284
onLinkClick={onLinkClick}
@@ -193,6 +205,7 @@ const GordonNavLinks = ({ onLinkClick }) => {
193205
<>
194206
<List className={styles.gordon_nav_links}>
195207
{homeButton}
208+
{guestTranscriptButton}
196209
{involvementsButton}
197210
{eventsButton}
198211
{peopleButton}

0 commit comments

Comments
 (0)