diff --git a/frontend/components/dashboard/SideBar.tsx b/frontend/components/dashboard/SideBar.tsx index 41ac9c144..937e85a08 100644 --- a/frontend/components/dashboard/SideBar.tsx +++ b/frontend/components/dashboard/SideBar.tsx @@ -9,6 +9,7 @@ import Button from '../basic/buttons/Button'; import Toggle from '../basic/Toggle'; import CommentField from './CommentField'; import DashboardInputField from './DashboardInputField'; +import { DeleteActionButton } from './DeleteActionButton'; import GenerateSecretMenu from './GenerateSecretMenu'; @@ -28,6 +29,10 @@ interface OverrideProps { pos: number; comment: string; } +export interface DeleteRowFunctionProps { + ids: string[]; + secretName: string; +} interface SideBarProps { toggleSidebar: (value: string) => void; @@ -41,7 +46,7 @@ interface SideBarProps { savePush: () => void; sharedToHide: string[]; setSharedToHide: (values: string[]) => void; - deleteRow: any; + deleteRow: (props: DeleteRowFunctionProps) => void; } /** @@ -170,14 +175,9 @@ const SideBar = ({ active={buttonReady} textDisabled="Saved" /> -