Chapter 7 (fetching data)
Answered
Barbary Lion posted this in #help-forum
Barbary LionOP
Currently having issues with the revenue chart to display. i'm not sure, because I don't have any bugs in the terminal so if anyone knows why, you are greatly appreciated. Here's the pictures of where I'm stuck.
Answered by Ray
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<div className="flex h-screen flex-col md:flex-row md:overflow-hidden">
<div className="w-full flex-none md:w-64">
<SideNav />
</div>
<div className="flex-grow p-6 md:overflow-y-auto md:p-12">{children}</div>
</div>
);
}14 Replies
what is your issue?
Barbary LionOP
so my goal is to get the chart to display on the screen , but i'm not sure what i'm missing. So it displays like this
go to
app/dashboard/page.tsxhow does it look like?
Barbary LionOP
uncomment those
Barbary LionOP
So i uncommented the Revenue component, but for some reason, not even the h1 displays
can you show the code in
app/layout.tsxBarbary LionOP
this is it now
this is the app/layout.tsx
yes here is the problem
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<div className="flex h-screen flex-col md:flex-row md:overflow-hidden">
<div className="w-full flex-none md:w-64">
<SideNav />
</div>
<div className="flex-grow p-6 md:overflow-y-auto md:p-12">{children}</div>
</div>
);
}Answer
Barbary LionOP
ahhh, I see, I didn't even consider adding it as props. I've been stuck on it most of yesterday lol.. I appreciate that sincerely ðŸ™ðŸ¾
np