diff --git a/apps/frontend/src/containers/Team/Delete.tsx b/apps/frontend/src/containers/Team/Delete.tsx index 9f4156ed0..154715b79 100644 --- a/apps/frontend/src/containers/Team/Delete.tsx +++ b/apps/frontend/src/containers/Team/Delete.tsx @@ -63,6 +63,17 @@ type DeleteTeamButtonProps = { }; const DeleteTeamButton = (props: DeleteTeamButtonProps) => { + return ( + + + + + + + ); +}; + +function TeamDeleteDialog(props: DeleteTeamButtonProps) { const client = useApolloClient(); const form = useForm({ defaultValues: { @@ -80,74 +91,69 @@ const DeleteTeamButton = (props: DeleteTeamButtonProps) => { window.location.replace(`/`); }; return ( - - - - - -
- - Delete Team - - Argos will delete all of your Team's projects - , along with all of its Builds, Screenshots, Screenshot Diffs, - Settings and other resources belonging to your Team. - - - Your existing subscription will be cancelled, and you will no - - - Argos recommends that you transfer projects you want to keep - to another Team before deleting this Team. - -
- Warning: This action is not reversible. - Please be certain. -
- { - if (value !== props.teamSlug) { - return "Team name does not match"; - } - return true; - }, - })} - className="mb-4" - label={ - <> - Enter the team name {props.teamSlug} to - continue: - + + + + + Delete Team + + Argos will delete all of your Team's projects, + along with all of its Builds, Screenshots, Screenshot Diffs, + Settings and other resources belonging to your Team. + + + Your existing subscription will be cancelled, and you will no + + + Argos recommends that you transfer projects you want to keep to + another Team before deleting this Team. + +
+ Warning: This action is not reversible. Please be + certain. +
+ { + if (value !== props.teamSlug) { + return "Team name does not match"; } - /> - { - if (value !== "delete my team") { - return "Please type 'delete my team' to confirm"; - } - return true; - }, - })} - label={ - <> - To verify, type delete my team below: - + return true; + }, + })} + className="mb-4" + label={ + <> + Enter the team name {props.teamSlug} to + continue: + + } + /> + { + if (value !== "delete my team") { + return "Please type 'delete my team' to confirm"; } - /> -
- - Cancel - Delete - - -
-
-
-
+ return true; + }, + })} + label={ + <> + To verify, type delete my team below: + + } + /> + + + Cancel + Delete + + + + ); -}; +} export const TeamDelete = (props: { team: FragmentType; @@ -173,7 +179,9 @@ export const TeamDelete = (props: { subscription before deleting the team. - +
+ +
) : (