CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

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