log in/registration to top
rearrange sidebar to move critically important to top
This commit is contained in:
parent
85e8b9b56d
commit
609848ea9d
@ -19,6 +19,27 @@ interface MenuLink {
|
|||||||
|
|
||||||
function getCurrentMenuLinks(username: string): MenuLink[][] {
|
function getCurrentMenuLinks(username: string): MenuLink[][] {
|
||||||
return [
|
return [
|
||||||
|
[
|
||||||
|
...(
|
||||||
|
username != undefined ?
|
||||||
|
[
|
||||||
|
{
|
||||||
|
to: "/my-account.html",
|
||||||
|
text: `Account (${username})`
|
||||||
|
}
|
||||||
|
] :
|
||||||
|
[
|
||||||
|
{
|
||||||
|
to: "/login.html",
|
||||||
|
text: "Log in"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/sign-up.html",
|
||||||
|
text: "Sign up"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
)
|
||||||
|
],
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
to: "/view/categories",
|
to: "/view/categories",
|
||||||
@ -114,25 +135,6 @@ function getCurrentMenuLinks(username: string): MenuLink[][] {
|
|||||||
to: "/contact.html",
|
to: "/contact.html",
|
||||||
text: "Contact"
|
text: "Contact"
|
||||||
},
|
},
|
||||||
...(
|
|
||||||
username != undefined ?
|
|
||||||
[
|
|
||||||
{
|
|
||||||
to: "/my-account.html",
|
|
||||||
text: `Account (${username})`
|
|
||||||
}
|
|
||||||
] :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
to: "/login.html",
|
|
||||||
text: "Log in"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/sign-up.html",
|
|
||||||
text: "Sign up"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user