Feature/add current location map

This commit is contained in:
AmirHossein Mahmoodi
2025-04-08 10:44:32 +00:00
parent 20d4746e66
commit 959456d0ef
6 changed files with 115 additions and 30 deletions

View File

@@ -35,7 +35,11 @@ const SidebarListItems = ({ menuItem, dispatch }) => {
{menuItem.badges && (
<Stack direction={"row"} sx={{ px: 0.5 }} spacing={0.5}>
{menuItem.badges.map((badge, i) => (
<SidebarBadge chipProps={{ color: badge.color || "primary" }} key={badge.key} badge={badge.key} />
<SidebarBadge
chipProps={{ color: badge.color || "primary" }}
key={badge.key}
badge={badge.key}
/>
))}
</Stack>
)}

View File

@@ -33,7 +33,11 @@ const SidebarSubitems = ({ subitem, dispatch }) => {
{subitem.badges && (
<Stack direction={"row"} sx={{ px: 0.5 }} spacing={0.5}>
{subitem.badges.map((badge, i) => (
<SidebarBadge chipProps={{ color: badge.color || "default" }} key={badge.key} badge={badge.key} />
<SidebarBadge
chipProps={{ color: badge.color || "default" }}
key={badge.key}
badge={badge.key}
/>
))}
</Stack>
)}