Path: blob/master/src/packages/frontend/account/upgrades/reset-projects.tsx
1503 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Well, Button, ButtonToolbar } from "../../antd-bootstrap";6import { UpgradeRestartWarning } from "../../upgrade-restart-warning";78export function ResetProjectsConfirmation({9on_confirm,10on_cancel,11}: {12on_confirm: (e?: any) => void;13on_cancel: (e?: any) => void;14}) {15return (16<Well17style={{ marginBottom: "0px", marginTop: "10px", background: "white" }}18>19Are you sure you want to remove all upgrades that you have contributed to20these projects?21<br />22Your upgrades will then be available to use on projects.23<br />24<UpgradeRestartWarning25style={{ display: "inline-block", margin: "15px 0" }}26/>27<ButtonToolbar>28<Button bsStyle="warning" onClick={on_confirm}>29Yes, please remove all upgrades30</Button>31<Button onClick={on_cancel}>Cancel</Button>32</ButtonToolbar>33</Well>34);35}363738