fix: update project list logging and rename container class for clarity
This commit is contained in:
parent
f52ac74865
commit
7e61b3c16c
|
@ -113,6 +113,7 @@ const DashboardHome: React.FC = () => {
|
||||||
|
|
||||||
const renderProjects = () => {
|
const renderProjects = () => {
|
||||||
const projectList = recentProjects[Object.keys(recentProjects)[0]];
|
const projectList = recentProjects[Object.keys(recentProjects)[0]];
|
||||||
|
console.log('projectList: ', projectList);
|
||||||
|
|
||||||
if (!projectList?.length) {
|
if (!projectList?.length) {
|
||||||
return <div className="empty-state">No recent projects found</div>;
|
return <div className="empty-state">No recent projects found</div>;
|
||||||
|
@ -148,7 +149,7 @@ const DashboardHome: React.FC = () => {
|
||||||
handleRecentProjectSearch={handleRecentProjectSearch}
|
handleRecentProjectSearch={handleRecentProjectSearch}
|
||||||
/>
|
/>
|
||||||
<MarketPlaceBanner />
|
<MarketPlaceBanner />
|
||||||
<div className="container">
|
<div className="dashboard-container">
|
||||||
<h2 className="section-header">Recents</h2>
|
<h2 className="section-header">Recents</h2>
|
||||||
<div className="cards-container">{renderProjects()}</div>
|
<div className="cards-container">{renderProjects()}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.dashboard-container {
|
||||||
margin: 22px 0;
|
margin: 22px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 357px);
|
height: calc(100% - 357px);
|
||||||
|
|
Loading…
Reference in New Issue