-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added more informative alerts to dashboard dialog
- Loading branch information
Showing
2 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,15 @@ const getDialogText = ( | |
closeTime: string, | ||
confirmTime: string | ||
): ReactElement => { | ||
if (status === Status.VERIFIED) { | ||
if (status === Status.UNVERIFIED) { | ||
return ( | ||
<div className={styles.dialogText}> | ||
<Typography variant="body1"> | ||
Check your email to get verified | ||
</Typography> | ||
</div> | ||
) | ||
} else if (status === Status.VERIFIED) { | ||
return ( | ||
<> | ||
<div className={styles.dialogText}> | ||
|
@@ -42,30 +50,35 @@ const getDialogText = ( | |
</div> | ||
<div className={styles.dialogText}> | ||
<Typography variant="body1"> | ||
If you do not complete your application by | ||
<br /> | ||
<span className={styles.deadline}>{closeTime}</span>, you will not | ||
be admitted! | ||
Non-CMU students need to complete their application by 11:59pm EST, | ||
January 19th. | ||
</Typography> | ||
</div> | ||
<div className={styles.dialogText}> | ||
<Typography variant="body1"> | ||
CMU students have time until January 26th. | ||
</Typography> | ||
</div> | ||
</> | ||
) | ||
} else if (status == Status.COMPLETED_PROFILE) { | ||
return ( | ||
<> | ||
{/** | ||
TODO uncomment | ||
<div className={styles.dialogText}> | ||
<Typography variant="body1">Welcome back!</Typography> | ||
<Typography variant="body1">Thank you for applying!</Typography> | ||
</div> | ||
<div className={styles.dialogText}> | ||
<Typography variant="body1"> | ||
Once we consider your application, you will receive an email from{" "} | ||
<b>[email protected]</b> | ||
</Typography> | ||
</div> | ||
<div className={styles.dialogText}> | ||
<Typography variant="body1"> | ||
You can edit your information until | ||
<br /> | ||
<span className={styles.deadline}>{confirmTime}</span> | ||
In the meantime, you can edit your application by clicking the | ||
button below | ||
</Typography> | ||
</div> | ||
*/} | ||
</> | ||
) | ||
} else if (status === Status.ADMITTED) { | ||
|
@@ -101,6 +114,8 @@ const getDialogText = ( | |
<Typography variant="body1"> | ||
In the meantime, join a team or create one with your friends! | ||
</Typography> | ||
{/** | ||
* | ||
<br /> | ||
<Typography variant="body1"> | ||
Once you're all set, download TartanHacks Dashboard! | ||
|
@@ -143,6 +158,7 @@ const getDialogText = ( | |
</RectangleButton> | ||
</Link> | ||
</div> | ||
*/} | ||
</div> | ||
</> | ||
) | ||
|
@@ -232,7 +248,9 @@ const getButtonBox = ( | |
color: "red" | ||
}} | ||
> | ||
You need to confirm in order to attend the event | ||
<Alert severity="warning"> | ||
You need to confirm in order to attend the event! | ||
</Alert> | ||
</Typography> | ||
</> | ||
) | ||
|