diff --git a/src/App.js b/src/App.js index f705751..79618bb 100644 --- a/src/App.js +++ b/src/App.js @@ -1149,6 +1149,9 @@ function App() { formatRangeLabel={formatRangeLabel} onSaveConfig={saveConfig} onResetConfig={() => fetchConfig()} + onHideEntry={hideEntry} + onDeleteEntry={deleteEntry} + canDelete={Boolean(session?.isAdmin)} /> ); diff --git a/src/components/DashboardView.js b/src/components/DashboardView.js index 188d564..1334bfe 100644 --- a/src/components/DashboardView.js +++ b/src/components/DashboardView.js @@ -25,7 +25,10 @@ const DashboardView = ({ onRangePickerRequest, formatRangeLabel, onSaveConfig, - onResetConfig + onResetConfig, + onHideEntry, + onDeleteEntry, + canDelete }) => { const { error: notificationError, @@ -192,9 +195,10 @@ const DashboardView = ({
{JSON.stringify(config, null, 2)}
-