Better settings ui

This commit is contained in:
2025-10-13 14:01:13 +02:00
parent 3b98a94c19
commit 2c061a6f8e
6 changed files with 131 additions and 83 deletions
+6 -9
View File
@@ -33,6 +33,7 @@ import ProfilePicture from "./ProfilePicture";
import auth, { makeAddress } from "@/lib/auth";
import { toast } from "sonner";
import { StringMap } from "@/types/typeUtils";
import SettingsDialog from "./settings/SettingsDialog";
export default function AppSidebar({
children,
@@ -195,9 +196,7 @@ export default function AppSidebar({
</Dialog>
<footer className="mt-auto">
<Link href="/settings">
<SettingsIcon />
</Link>
<SettingsDialog />
</footer>
</div>
@@ -271,12 +270,10 @@ function DMItem({
<span className="text-xs text-muted-foreground">{status}</span>
</div>
{settings && (
<Button
onClick={() => router.push(`/settings?tab=profile`)}
className="bg-transparent text-accent-foreground hover:text-accent ml-auto w-7 h-7 p-0 flex items-center justify-center rounded-md"
>
<SettingsIcon size={16} />
</Button>
<SettingsDialog
className="ml-auto w-7 h-7 p-0 flex items-center justify-center"
tab="profile"
/>
)}
</Card>
);