Cancel button
This commit is contained in:
1 parent
4e5cebc569
commit
70ea2105b2
4 files changed
+6
-1
No files matched your search
@@ -2,6 +2,7 @@ import PropTypes from "prop-types";
|
||||
import { Button, Stack } from "@mui/material";
|
||||
import { GenericDialog } from "./genericDialog";
|
||||
import { useTheme } from "@emotion/react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const Dialog = ({
|
||||
title,
|
||||
@@ -13,6 +14,7 @@ const Dialog = ({
|
||||
isLoading,
|
||||
}) => {
|
||||
const theme = useTheme();
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<GenericDialog
|
||||
@@ -33,7 +35,7 @@ const Dialog = ({
|
||||
color="secondary"
|
||||
onClick={onCancel}
|
||||
>
|
||||
Cancel
|
||||
{t("cancel", "Cancel")}
|
||||
</Button>
|
||||
<Button
|
||||
variant="contained"
|
||||
|
||||
Reference in new issue
Block a user