Skip to content

Commit a0bc505

Browse files
added div for when no alert has popped
1 parent d3cea99 commit a0bc505

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/components/layout/AppHeader.jsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,17 @@ const AppHeader = () => {
132132
</CNavItem>
133133
</CHeaderNav>
134134
</CHeader>
135-
136-
{dashboard &&
137-
dashboard.length >= 1 &&
138-
dashboard.map((item, index) => (
139-
<div className="m-1" key={index}>
140-
<CAlert className="m-3" key={index} color={item.type} dismissible>
141-
{item.Alert} <CAlertLink href={item.link}>Link</CAlertLink>
142-
</CAlert>
143-
</div>
144-
))}
135+
<div className="m-2">
136+
{dashboard &&
137+
dashboard.length >= 1 &&
138+
dashboard.map((item, index) => (
139+
<div className="m-1" key={index}>
140+
<CAlert className="m-3" key={index} color={item.type} dismissible>
141+
{item.Alert} <CAlertLink href={item.link}>Link</CAlertLink>
142+
</CAlert>
143+
</div>
144+
))}
145+
</div>
145146
</>
146147
)
147148
}

0 commit comments

Comments
 (0)