Archived
"żeby dashboard był wyrzej od wylogowywania"
This commit is contained in:
1 parent
add90d895d
commit
3176120556
1 file changed
+9
-9
@@ -14,6 +14,15 @@ export const UserPanel = (props) => {
|
||||
<h3>Zalogowano jako</h3>
|
||||
<h1>{LOGIN_MANAGER.state.email ?? "Nieznany użytkownik"}</h1>
|
||||
<Stack gap={2}>
|
||||
<button
|
||||
aria-label="Dashboard"
|
||||
onClick={() => {
|
||||
props.history?.push("/dashboard");
|
||||
props.close();
|
||||
}}
|
||||
>
|
||||
Dashboard
|
||||
</button>
|
||||
<button
|
||||
aria-label="Wyloguj się"
|
||||
onClick={async () => {
|
||||
@@ -24,15 +33,6 @@ export const UserPanel = (props) => {
|
||||
>
|
||||
<BIcon icon="box-arrow-right" /> Wyloguj się
|
||||
</button>
|
||||
<button
|
||||
aria-label="Dashboard"
|
||||
onClick={() => {
|
||||
props.history?.push("/dashboard");
|
||||
props.close();
|
||||
}}
|
||||
>
|
||||
Dashboard
|
||||
</button>
|
||||
</Stack>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user