Skip to content

Commit fb39494

Browse files
committed
2 parents fc50f94 + c304267 commit fb39494

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "isaac-cs-app",
3-
"version": "0.1.3-SNAPSHOT",
3+
"version": "0.1.4-SNAPSHOT",
44
"private": true,
55
"dependencies": {
66
"@babel/core": "7.2.2",

public/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@
3030
work correctly both with client-side routing and a non-root public URL.
3131
Learn how to configure a non-root public URL by running `npm run build`.
3232
-->
33+
<meta property="og:url" content="%PUBLIC_URL%" />
34+
<meta property="og:site_name" content="Isaac Computer Science" />
35+
<meta property="og:title" content="Isaac Computer Science" />
36+
<meta property="og:type" content="website" />
37+
<meta property="og:description" content="Isaac Computer Science is currently in development." />
38+
<meta property="og:image" content="%PUBLIC_URL%/assets/favicon/favicon-196x196.png" />
3339
<title>Isaac Computer Science</title>
3440
</head>
3541
<body>
36-
<noscript>You need to enable JavaScript to run this app.</noscript>
42+
<noscript>You need to enable JavaScript to use Isaac Computer Science.</noscript>
3743
<div id="root" class="d-flex flex-column min-vh-100 overflow-hidden"></div>
3844
</body>
3945
</html>

src/app/components/pages/Registration.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ const RegistrationPageComponent = ({user, updateCurrentUser, errorMessage, userE
5454
const [dobCheckboxChecked, setDobCheckboxChecked] = useState(false);
5555
const [attemptedSignUp, setAttemptedSignUp] = useState(false);
5656

57+
5758
// Values derived from inputs (props and state)
5859
const emailIsValid = registrationUser.email && validateEmail(registrationUser.email);
5960
const passwordIsValid =
6061
(registrationUser.password == unverifiedPassword) && validatePassword(registrationUser.password || "");
6162
const dobIsOverThirteen = isDobOverThirteen(registrationUser.dateOfBirth);
6263
const confirmedOverThirteen = dobCheckboxChecked || dobIsOverThirteen;
6364

65+
6466
// Form's submission method
6567
const register = (event: React.FormEvent<HTMLFontElement>) => {
6668
event.preventDefault();
@@ -76,12 +78,14 @@ const RegistrationPageComponent = ({user, updateCurrentUser, errorMessage, userE
7678
}
7779
};
7880

81+
7982
// Convenience method
8083
const assignToRegistrationUser = (updates: {}) => {
8184
// Create new object to trigger re-render
8285
setRegistrationUser(Object.assign({}, registrationUser, updates));
8386
};
8487

88+
8589
// Render
8690
return <Container id="registration-page" className="mb-5">
8791

0 commit comments

Comments
 (0)