-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(delete launch-manager modal): 🎉 add delete launch manager modal …
…and update workspace component
- Loading branch information
1 parent
d6d2ddb
commit fb5f023
Showing
10 changed files
with
236 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/components/RobotDeleteLaunchManagerButton/RobotDeleteLaunchManagerButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React, { Fragment, ReactElement, useState } from "react"; | ||
import Button from "../Button/Button"; | ||
import DeleteLaunchManagerModal from "../../modals/DeleteLaunchManagerModal"; | ||
|
||
interface IRobotDeleteLaunchManagerButton { | ||
launchManagerName: string; | ||
} | ||
|
||
export default function RobotDeleteLaunchManagerButton({ | ||
launchManagerName, | ||
}: IRobotDeleteLaunchManagerButton): ReactElement { | ||
const [isShowDeleteModal, setIsShowDeleteModal] = useState<boolean>(false); | ||
|
||
return ( | ||
<Fragment> | ||
<Button | ||
className="text-xs w-full !h-11 !bg-transparent hover:!bg-red-100 !text-red-500 !border !border-red-500 focus:!ring-red-300" | ||
onClick={() => setIsShowDeleteModal(true)} | ||
text="Delete Launch Step" | ||
/> | ||
{isShowDeleteModal && ( | ||
<DeleteLaunchManagerModal | ||
handleCloseModal={() => setIsShowDeleteModal(false)} | ||
launchManagerName={launchManagerName} | ||
/> | ||
)} | ||
</Fragment> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.