Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/src/packages/frontend/account/messages.tsx
Views: 821
import { Button, Card, Checkbox } from "antd";1import { redux, useTypedRedux } from "@cocalc/frontend/app-framework";2import { Icon } from "@cocalc/frontend/components/icon";34export default function Messages() {5const other_settings = useTypedRedux("account", "other_settings");6const email_address_verified = useTypedRedux(7"account",8"email_address_verified",9);10const email_address = useTypedRedux("account", "email_address");1112const isVerified = !!email_address_verified?.get(email_address ?? "");13return (14<Card15style={{ marginTop: "10px" }}16title={17<Button18onClick={() => {19redux.getActions("page").set_active_tab("notifications");20redux21.getActions("mentions")22.set_filter("messages-inbox" as "messages-inbox");23}}24type="link"25style={{ fontSize: "16px", marginLeft: "-15px" }}26>27<Icon name="mail" /> Message Settings28</Button>29}30>31<Checkbox32checked={other_settings?.get("no_email_new_messages")}33onChange={(e) => {34const actions = redux.getActions("account");35actions.set_other_settings("no_email_new_messages", e.target.checked);36}}37>38Do NOT send email when you get new internal messages39</Checkbox>40{!isVerified && !other_settings?.get("no_email_new_messages") && (41<>42(NOTE: You must also verify your email address above to get emails43about new messages.)44</>45)}46</Card>47);48}495051