Skip to content

Commit

Permalink
Move links to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker committed Nov 25, 2024
2 parents d19a05d + e079d46 commit b7fd82a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/routes/_authenticated/settings/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export const Route = createFileRoute("/_authenticated/settings/account")({
const SettingsSection = ({
title,
children,
}: { title: string; children: React.ReactNode }) => (
}: {
title: string;
children: React.ReactNode;
}) => (
<section className="flex flex-col lg:flex-row gap-4 mb-8 last-of-type:mb-0">
<h2 className="lg:w-1/3 text-lg font-medium">{title}</h2>
<Card className="lg:w-2/3 flex flex-col p-0 divide-y divide-gray-dim">
Expand All @@ -39,7 +42,11 @@ const SettingsItem = ({
label,
description,
children,
}: { label: string; description?: string; children: React.ReactNode }) => (
}: {
label: string;
description?: string;
children: React.ReactNode;
}) => (
<div className="flex justify-between items-center gap-8 p-4">
<div className="self-start">
<h3 className="text-base -mt-px">{label}</h3>
Expand Down

0 comments on commit b7fd82a

Please sign in to comment.