mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-26 13:04:13 +00:00
close function added to addworkspacemodal
This commit is contained in:
@@ -3,10 +3,11 @@ import ConfirmationModal from '../../UI/Modals/ConfirmationModal';
|
||||
// import './AddUserModal.sass';
|
||||
|
||||
interface AddWorkspaceModal {
|
||||
isOpen : boolean
|
||||
isOpen : boolean,
|
||||
onCloseModal: () => void
|
||||
}
|
||||
|
||||
const AddWorkspaceModal: FC<AddWorkspaceModal> = ({isOpen,children}) => {
|
||||
const AddWorkspaceModal: FC<AddWorkspaceModal> = ({isOpen,onCloseModal,children}) => {
|
||||
|
||||
const [isOpenModal,setIsOpen] = useState(isOpen)
|
||||
|
||||
|
@@ -50,7 +50,7 @@ export const WorkspaceSettings : React.FC<Props> = ({}) => {
|
||||
<FilterableTableAction onRowEdit={onRowEdit} onRowDelete={onRowDelete} searchConfig={searchConfig}
|
||||
buttonConfig={buttonConfig} rows={workspacesRows} cols={cols}>
|
||||
</FilterableTableAction>
|
||||
<AddWorkspaceModal isOpen={isOpenModal}>
|
||||
<AddWorkspaceModal isOpen={isOpenModal} onCloseModal={() => { setIsOpen(false); } }>
|
||||
<SelectList valuesListInput={namespaces} tableName={"Namespaces"} multiSelect={false} setValues={function (newValues: any): void {
|
||||
throw new Error("Function not implemented.");
|
||||
} } tabelClassName={undefined}></SelectList>
|
||||
|
Reference in New Issue
Block a user