Hi guys, I just started trying remix and I'm trying to create a dashboard with cards as outlets but the cards are not displayed in dashboard parent layout . I can access the outlet if I go to its url like dashboard/samplecard. I'm not sure what am I missing, any reference will be helpful.
routes >
_app.dashboard.tsx
export default function DashboardRoute() {
return (
<>
<Dashboard />
<Outlet />
</>
);
}
_app.dashboard.samplecard.tsx
export default function SampleCardDashboardRoute() {
return (
<>
<SampleCard />
</>
);
}
components >
Dashboard.tsx
export default function Dashboard() {
return (
<div>
Dashboard
</div>
);
}
SampleCard.tsx
export function SampleCard(props: ISampleCardProps) {
return (
<div>
<dl className="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">
<div className="overflow-hidden rounded-lg bg-white px-4 py-5 shadow sm:p-6">
<dt className="truncate text-sm font-medium text-gray-500">
Data Count
</dt>
<dd className="mt-1 text-3xl font-semibold tracking-tight text-gray-900">
681
</dd>
</div>
</dl>
</div>
);
}