Path: blob/master/src/packages/frontend/course/configuration/delete-all-students.tsx
1503 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Button, Card, Popconfirm } from "antd";6import { Icon } from "../../components";78export function DeleteAllStudents({ actions }) {9return (10<Card11title={12<>13<Icon name="trash" /> Delete all Students14</>15}16>17<Popconfirm18title="All students will be deleted and upgrades removed from their projects."19onConfirm={() => actions.students.deleteAllStudents()}20okText={"YES, DELETE all Students"}21>22<Button danger>23<Icon name="trash" /> Delete all Students...24</Button>25</Popconfirm>26<hr />27<span style={{ color: "#666" }}>28Student projects will not be deleted. If you make a mistake, students29can still be undeleted from the Student tab or using TimeTravel.30</span>31</Card>32);33}343536