mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-31 19:42:15 +00:00
# Which Problems Are Solved Invalid formatting in the login codebase due to invalid prettier configuration # How the Problems Are Solved Fxed .prettierignore wildcards for login source files # Additional Changes Removed .prettierrc file because there is already a prettier.config.mjs file # Additional Context
37 lines
989 B
TypeScript
37 lines
989 B
TypeScript
import Link from "next/link";
|
|
|
|
export function SelfServiceMenu() {
|
|
const list: any[] = [];
|
|
|
|
// if (!!config.selfservice.change_password.enabled) {
|
|
// list.push({
|
|
// link:
|
|
// `/me/change-password?` +
|
|
// new URLSearchParams({
|
|
// sessionId: sessionId,
|
|
// }),
|
|
// name: "Change password",
|
|
// });
|
|
// }
|
|
|
|
return (
|
|
<div className="flex w-full flex-col space-y-2">
|
|
{list.map((menuitem, index) => {
|
|
return <SelfServiceItem link={menuitem.link} key={"self-service-" + index} name={menuitem.name} />;
|
|
})}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
const SelfServiceItem = ({ name, link }: { name: string; link: string }) => {
|
|
return (
|
|
<Link
|
|
prefetch={false}
|
|
href={link}
|
|
className="group flex w-full flex-row items-center rounded-md border border-divider-light bg-background-light-400 px-4 py-2 transition-all hover:shadow-lg dark:bg-background-dark-400 dark:hover:bg-white/10"
|
|
>
|
|
{name}
|
|
</Link>
|
|
);
|
|
};
|