Connect Alert Level widget creation to First Widget Button
This commit is contained in:
@@ -11,7 +11,6 @@ import { SaveButton } from "../CanvasComponents/SaveButton";
|
||||
import DeleteAllButton from "../CanvasComponents/DeleteAllButton";
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
|
||||
export default function Home({...props}) {
|
||||
// deconstructing props
|
||||
const { view, layout, setLayout, setOriginalLayout, onLayoutChange, onChangeView, onCancel,
|
||||
@@ -99,7 +98,7 @@ export default function Home({...props}) {
|
||||
}
|
||||
|
||||
// Prop Forwarding
|
||||
const MyDashboardProps = { layout, onLayoutChange, isEditable, isDelete, DeleteWidget, widgetArray };
|
||||
const MyDashboardProps = { layout, onLayoutChange, isEditable, isDelete, DeleteWidget, widgetArray, appendWidget };
|
||||
const settingsButtonProps = { onEditWidgets, onDeleteWidgets, appendWidget };
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user