fix(template): EmptyState takes children, not message
Core's EmptyState renders its children and nothing else. The template's clan list passed the sentence as message=, which React drops without a word, so the panel rendered as an empty box - and module-rust, built from this template, shipped six of those across four phases before a browser walk noticed (docs modules/rust/PLAN.md §23.4). Same class of bug as the PageHeader subtitle the Teams work found here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
This commit is contained in:
@@ -23,8 +23,12 @@ export default function Clans() {
|
||||
{loading && <Loading />}
|
||||
{error && <ErrorState error={error} />}
|
||||
|
||||
{/* `EmptyState` renders its CHILDREN and takes no other prop. Pass the
|
||||
sentence as `message=` and React drops it without a word: the panel
|
||||
renders as an empty box. module-rust shipped six of those for four
|
||||
phases, learned from this line when it said `message=`. */}
|
||||
{data && data.clans.length === 0 && (
|
||||
<EmptyState message="No clans have been reported yet." />
|
||||
<EmptyState>No clans have been reported yet.</EmptyState>
|
||||
)}
|
||||
|
||||
{data && data.clans.length > 0 && (
|
||||
|
||||
Reference in New Issue
Block a user