handle auth correctly and added change password

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-28 22:59:33 +02:00
parent e0cc9ef83b
commit aa5c881ec6
7 changed files with 149 additions and 44 deletions

View File

@@ -20,7 +20,7 @@ export function ContentHeader({ title, text, children }: ContentHeaderProps) {
type ContentSectionProps = {
title: string;
text: string;
text?: string | React.ReactNode;
children: React.ReactNode;
asCol?: boolean;
};
@@ -41,7 +41,7 @@ export function ContentSection({
{title && (
<div className="max-w-[50%]">
<h4 className="h4">{title}</h4>
<p className="text-sm text-muted-foreground">{text}</p>
{text && <p className="text-sm text-muted-foreground">{text}</p>}
</div>
)}
<div>{children}</div>