fix: the following is done:
- show cursor as pointer when hovering "Advanced Options" - show error reporting identifier as bold text - when closing account menu with opened "Sign in" form and then reopening account menu, don't show "Sign in" form
This commit is contained in:
@@ -277,7 +277,7 @@ const Authentication = observer(({
|
|||||||
<div className="sk-panel-row" />
|
<div className="sk-panel-row" />
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="sk-a info font-bold text-left p-0 hover:underline mr-1 ml-1"
|
className="sk-a info font-bold text-left p-0 cursor-pointer hover:underline mr-1 ml-1"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setShowAdvanced(!showAdvanced);
|
setShowAdvanced(!showAdvanced);
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
@@ -56,8 +56,7 @@ const ErrorReporting = observer(({ appState }: Props) => {
|
|||||||
{errorReportingIdValue && (
|
{errorReportingIdValue && (
|
||||||
<>
|
<>
|
||||||
<p className="sk-p selectable">
|
<p className="sk-p selectable">
|
||||||
Your random identifier is
|
Your random identifier is <span className="font-bold">{errorReportingIdValue}</span>
|
||||||
strong {errorReportingIdValue}
|
|
||||||
</p>
|
</p>
|
||||||
<p className="sk-p">
|
<p className="sk-p">
|
||||||
Disabling error reporting will remove that identifier from your
|
Disabling error reporting will remove that identifier from your
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import Protections from '@/components/AccountMenu/Protections';
|
|||||||
import PasscodeLock from '@/components/AccountMenu/PasscodeLock';
|
import PasscodeLock from '@/components/AccountMenu/PasscodeLock';
|
||||||
import DataBackup from '@/components/AccountMenu/DataBackup';
|
import DataBackup from '@/components/AccountMenu/DataBackup';
|
||||||
import ErrorReporting from '@/components/AccountMenu/ErrorReporting';
|
import ErrorReporting from '@/components/AccountMenu/ErrorReporting';
|
||||||
|
import { useEffect } from 'preact/hooks';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
appState: AppState;
|
appState: AppState;
|
||||||
@@ -19,13 +20,25 @@ type Props = {
|
|||||||
|
|
||||||
const AccountMenu = observer(({ application, appState }: Props) => {
|
const AccountMenu = observer(({ application, appState }: Props) => {
|
||||||
const {
|
const {
|
||||||
|
show: showAccountMenu,
|
||||||
showLogin,
|
showLogin,
|
||||||
showRegister,
|
showRegister,
|
||||||
|
setShowLogin,
|
||||||
|
setShowRegister,
|
||||||
closeAccountMenu
|
closeAccountMenu
|
||||||
} = appState.accountMenu;
|
} = appState.accountMenu;
|
||||||
|
|
||||||
const user = application.getUser();
|
const user = application.getUser();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// Reset "Login" and "Registration" sections state when hiding account menu,
|
||||||
|
// so the next time account menu is opened these sections are closed
|
||||||
|
if (!showAccountMenu) {
|
||||||
|
setShowLogin(false);
|
||||||
|
setShowRegister(false);
|
||||||
|
}
|
||||||
|
}, [setShowLogin, setShowRegister, showAccountMenu]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="sn-component">
|
<div className="sn-component">
|
||||||
<div id="account-panel" className="sk-panel">
|
<div id="account-panel" className="sk-panel">
|
||||||
|
|||||||
Reference in New Issue
Block a user