|
|
|
@ -41,10 +41,14 @@ export default function AccountPage({orders}) {
|
|
|
|
|
|
|
|
|
|
<h3>Email and Password</h3>
|
|
|
|
|
<div style={{maxWidth: 700, margin: '0 auto'}}>
|
|
|
|
|
<p><strong>Email:</strong> {user.email} <button className="buttonLink">Change</button></p>
|
|
|
|
|
<p><strong>Email:</strong> {user.email} <Link href="/account/change-email"><a>Change</a></Link></p>
|
|
|
|
|
|
|
|
|
|
{/* TODO: Store date password was set so we can show "Set on [date]"? */}
|
|
|
|
|
<p><strong>Password:</strong> {!user.password_hash ? 'Unset' : <>Set. <Link href="/account/change-password"><a>Change</a></Link></>}</p>
|
|
|
|
|
<p><strong>Password:</strong> {
|
|
|
|
|
!user.password_hash
|
|
|
|
|
? 'Unset'
|
|
|
|
|
: <>Last changed {DateTime.fromISO(user.time_password_changed).toFormat('LLLL dd yyyy, h:mm a')}. <Link href="/account/change-password"><a>Change</a></Link></>
|
|
|
|
|
}</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h3>Your Orders</h3>
|
|
|
|
|