Added link to admin panel

Resolved #11
This commit is contained in:
2021-03-12 13:32:19 +11:00
parent d66d0bc9da
commit 8a920c5316
4 changed files with 21 additions and 10 deletions
+3 -1
View File
@@ -39,12 +39,14 @@ const Account = props => {
<h1 className='centered'>Account</h1>
<form className='constricted' onSubmit={async evt => {
evt.preventDefault();
const [err, result] = await update(passwordRef.current.value, retypeRef.current.value, contactRef.current.checked, authTokens.tokenFetch);
const [err] = await update(passwordRef.current.value, retypeRef.current.value, contactRef.current.checked, authTokens.tokenFetch);
if (err) {
alert(err);
return;
}
alert('Details updated');
passwordRef.current.value = retypeRef.current.value = '';
}}>
<div>