Fixed key prop error

This commit is contained in:
Daniel Cojocea
2024-08-19 15:04:04 -04:00
parent 1c31b13438
commit b27712a629

View File

@@ -185,6 +185,7 @@ function Sidebar() {
{menu.map((item) =>
item.path ? (
<Tooltip
key={item.path}
placement="right"
title={collapsed ? item.name : ""}
slotProps={{
@@ -204,7 +205,6 @@ function Sidebar() {
className={
location.pathname.includes(item.path) ? "selected-path" : ""
}
key={item.path}
onClick={() => navigate(`/${item.path}`)}
sx={{
gap: theme.gap.medium,
@@ -381,6 +381,7 @@ function Sidebar() {
>
{other.map((item) => (
<Tooltip
key={item.path}
placement="right"
title={collapsed ? item.name : ""}
slotProps={{
@@ -400,7 +401,6 @@ function Sidebar() {
className={
location.pathname.includes(item.path) ? "selected-path" : ""
}
key={item.path}
onClick={() =>
item.path === "support"
? window.open(