refactor: remove role display from ComplexSettingsPage and adjust HomePage layout
This commit is contained in:
@@ -61,16 +61,7 @@ export function ComplexSettingsPage({ complexSlug }: ComplexSettingsPageProps) {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{currentMembership?.role && (
|
||||
<div className="inline-flex items-center gap-2 rounded-2xl border border-border/70 bg-background px-4 py-3 text-sm">
|
||||
<span className="text-xs uppercase tracking-[0.24em] text-muted-foreground">
|
||||
Tu rol
|
||||
</span>
|
||||
<span className="rounded-full border border-border/70 bg-card px-2.5 py-1 text-xs font-medium text-foreground">
|
||||
{currentMembership.role}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -84,11 +75,10 @@ export function ComplexSettingsPage({ complexSlug }: ComplexSettingsPageProps) {
|
||||
key={tab.id}
|
||||
type="button"
|
||||
onClick={() => setActiveTab(tab.id)}
|
||||
className={`inline-flex items-center gap-2 rounded-2xl px-3 py-3 text-sm font-medium transition-all lg:w-full lg:justify-start ${
|
||||
isActive
|
||||
className={`inline-flex items-center gap-2 rounded-2xl px-3 py-3 text-sm font-medium transition-all lg:w-full lg:justify-start ${isActive
|
||||
? 'bg-primary text-primary-foreground shadow-sm'
|
||||
: 'text-muted-foreground hover:bg-muted hover:text-foreground'
|
||||
}`}
|
||||
}`}
|
||||
>
|
||||
<Icon className="size-4" />
|
||||
{tab.label}
|
||||
|
||||
Reference in New Issue
Block a user