Fix button.map warning inside Sidebar.jsx 'each child in a list should hae a unique key prop'. Pass 'key' parameter in top level Tooltip inside map function

This commit is contained in:
Daniel S. Hansen
2025-07-29 12:53:20 -07:00
parent 482ea9b04c
commit 6a990ef56e
2 changed files with 7 additions and 7 deletions
@@ -1,13 +1,13 @@
import { useSlotRecipe, chakra, Flex, CloseButton, Text } from "@chakra-ui/react"
export default function Widget({ id, title, isEditable, isDelete, DeleteWidget }) {
console.log("rendering widget");
// console.log("rendering widget");
const recipe = useSlotRecipe({ key: "widget" });
const styles = recipe();
return (
<>
{console.log("This widgets id is: ", id)}
{/* {console.log("This widgets id is: ", id)} */}
<chakra.div css={styles.header} cursor={isEditable ? "move":"default"}>
{isDelete ? (
<>