fix(17): IN-05 normalize AdminPage JSX formatting with Prettier
This commit is contained in:
@@ -244,9 +244,7 @@ export function AdminPage() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
setActiveTab(next);
|
setActiveTab(next);
|
||||||
(
|
(
|
||||||
e.currentTarget.parentElement?.querySelector(
|
e.currentTarget.parentElement?.querySelector(`[id="admin-tab-${next}"]`) as HTMLElement | null
|
||||||
`[id="admin-tab-${next}"]`,
|
|
||||||
) as HTMLElement | null
|
|
||||||
)?.focus();
|
)?.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -370,13 +368,9 @@ export function AdminPage() {
|
|||||||
fontSize: 'var(--text-label-size, 13px)',
|
fontSize: 'var(--text-label-size, 13px)',
|
||||||
fontWeight: activeTab === id ? 600 : 400,
|
fontWeight: activeTab === id ? 600 : 400,
|
||||||
color:
|
color:
|
||||||
activeTab === id
|
activeTab === id ? 'var(--color-text-primary)' : 'var(--color-text-secondary)',
|
||||||
? 'var(--color-text-primary)'
|
|
||||||
: 'var(--color-text-secondary)',
|
|
||||||
borderBottom:
|
borderBottom:
|
||||||
activeTab === id
|
activeTab === id ? '2px solid var(--color-member-0)' : '2px solid transparent',
|
||||||
? '2px solid var(--color-member-0)'
|
|
||||||
: '2px solid transparent',
|
|
||||||
transition: 'color 0.1s ease, border-color 0.1s ease',
|
transition: 'color 0.1s ease, border-color 0.1s ease',
|
||||||
fontFamily: 'var(--font-family-base)',
|
fontFamily: 'var(--font-family-base)',
|
||||||
}}
|
}}
|
||||||
@@ -394,7 +388,6 @@ export function AdminPage() {
|
|||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
hidden={activeTab !== 'members'}
|
hidden={activeTab !== 'members'}
|
||||||
>
|
>
|
||||||
|
|
||||||
{/* ── MEMBERS section ───────────────────────────────────────────── */}
|
{/* ── MEMBERS section ───────────────────────────────────────────── */}
|
||||||
<section aria-label="Members" style={{ marginBottom: 'var(--space-8, 32px)' }}>
|
<section aria-label="Members" style={{ marginBottom: 'var(--space-8, 32px)' }}>
|
||||||
<div style={sectionLabelStyle}>Members</div>
|
<div style={sectionLabelStyle}>Members</div>
|
||||||
@@ -667,8 +660,8 @@ export function AdminPage() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</div>
|
||||||
</div>{/* end admin-panel-members */}
|
{/* end admin-panel-members */}
|
||||||
|
|
||||||
{/* ── Tab panel: Settings ───────────────────────────────────────────── */}
|
{/* ── Tab panel: Settings ───────────────────────────────────────────── */}
|
||||||
<div
|
<div
|
||||||
@@ -678,7 +671,6 @@ export function AdminPage() {
|
|||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
hidden={activeTab !== 'settings'}
|
hidden={activeTab !== 'settings'}
|
||||||
>
|
>
|
||||||
|
|
||||||
{/* ── SHARED CALENDAR section ──────────────────────────────────────── */}
|
{/* ── SHARED CALENDAR section ──────────────────────────────────────── */}
|
||||||
<section aria-label="Shared Calendar" style={{ marginBottom: 'var(--space-8, 32px)' }}>
|
<section aria-label="Shared Calendar" style={{ marginBottom: 'var(--space-8, 32px)' }}>
|
||||||
<div style={sectionLabelStyle}>Shared Calendar</div>
|
<div style={sectionLabelStyle}>Shared Calendar</div>
|
||||||
@@ -984,9 +976,7 @@ export function AdminPage() {
|
|||||||
color: 'var(--color-text-primary)',
|
color: 'var(--color-text-primary)',
|
||||||
borderRadius: 'var(--space-1, 4px)',
|
borderRadius: 'var(--space-1, 4px)',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
background: active
|
background: active ? 'var(--color-member-0, #4A90D9)' : 'transparent',
|
||||||
? 'var(--color-member-0, #4A90D9)'
|
|
||||||
: 'transparent',
|
|
||||||
...(active ? { color: '#ffffff' } : null),
|
...(active ? { color: '#ffffff' } : null),
|
||||||
minHeight: '44px',
|
minHeight: '44px',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -1069,10 +1059,10 @@ export function AdminPage() {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
|
</div>
|
||||||
</div>{/* end admin-panel-settings */}
|
{/* end admin-panel-settings */}
|
||||||
|
</div>
|
||||||
</div>{/* end centered content column */}
|
{/* end centered content column */}
|
||||||
|
|
||||||
{/* ── Success toast (D-08) ──────────────────────────────────────────────── */}
|
{/* ── Success toast (D-08) ──────────────────────────────────────────────── */}
|
||||||
{toast && (
|
{toast && (
|
||||||
|
|||||||
Reference in New Issue
Block a user