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:
@@ -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 ? (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user