diff --git a/src/components/AffixButton/AffixButton.tsx b/src/components/AffixButton/AffixButton.tsx index 08678d3a4..514dbb07a 100644 --- a/src/components/AffixButton/AffixButton.tsx +++ b/src/components/AffixButton/AffixButton.tsx @@ -1,7 +1,7 @@ -import { - NoteAdd, - AddCircle, - AddOutlined, +import { + NoteAdd, + AddCircle, + AddOutlined, PersonAddAlt1Outlined, Source, Report @@ -177,12 +177,21 @@ const AffixButton = ({ personalitySlug }: AffixButtonProps) => { ))} + {t("tutorial:modalTitle")} + + } >

{ components={[]} />

- +
{ return ( + } content={ @@ -90,13 +90,28 @@ const AffixCTAButton = ({ copilotDrawerWidth }) => { setModalVisible(false)} - maskClosable={false} theme="dark" - width={"75%"} + width={vw?.xs ? "100%" : "60%"} closeIcon={} + style={{ alignSelf: "flex-start", paddingTop: "10vh" }} + title={ +
+

+ {t("NewCTARegistration:body")} +

+
+ } >
diff --git a/src/components/Form/ClassificationModal.tsx b/src/components/Form/ClassificationModal.tsx index 3454b5828..d1a4b0143 100644 --- a/src/components/Form/ClassificationModal.tsx +++ b/src/components/Form/ClassificationModal.tsx @@ -32,14 +32,24 @@ const ClassificationModal = ({ return ( + {t("claimReviewForm:classificationLabel")} + + } > diff --git a/src/components/ImageUpload.tsx b/src/components/ImageUpload.tsx index fdbdb8a7e..24731297b 100644 --- a/src/components/ImageUpload.tsx +++ b/src/components/ImageUpload.tsx @@ -115,10 +115,23 @@ const ImageUpload = ({ )} + {previewTitle} + + } > {`preview (props.width ? props.width : "300px")}; - margin: 0 auto; - border-radius: 8px; - background-color: ${(props) => - props.theme === "dark" ? colors.black : colors.lightNeutral}; - box-shadow: 0px 0px 15px ${colors.shadow}; - padding: 26px 26px; - max-width: 90vw; - } + .MuiDialog-paper { + width: ${(props) => (props.width ? props.width : "300px")}; + margin: 0 auto; + border-radius: 8px; + background-color: ${(props) => + props.theme === "dark" ? colors.black : colors.lightNeutral}; + box-shadow: 0px 0px 15px ${colors.shadow}; + padding: 24px; + max-width: 90vw; + } - .ant-modal-body { - padding: 0; - } + .MuiDialogTitle-root { + color: ${(props) => props.theme === "dark" ? colors.white : colors.black}; + font-size: 14px; + line-height: 20px; + margin-bottom: 12; + padding: 0; + } - .ant-modal-header { - background: none; - border-bottom: 0px; - padding: 0 0 10px 0; - } + .MuiDialogActions-root { + display: flex; + justify-content: center; + font-size: 24px; + line-height: 24px; + padding: 20px 0; + } - .ant-modal-title { - color: ${(props) => - props.theme === "dark" ? colors.white : colors.black}; - font-weight: 700; - font-size: 14px; - text-align: center; - text-transform: uppercase; - padding: 0 32px; - } + .MuiIconButton-root { + top: 10px; + right: 10px; + position: absolute; + color: ${(props) => + props.theme === "dark" ? colors.white : colors.primary}; + } - svg[data-icon="close"] { - margin-top: 26px; - width: 14px; - height: 14px; - color: ${(props) => - props.theme === "dark" ? colors.white : colors.primary}; - margin-right: 20px; - } + .MuiDialogContent-root { + font-size: 14px; + padding: 0; + } - .ant-modal-body .modal-title { - display: flex; - gap: 10px; - width: calc(100% - 20px); - font-size: 24px; - line-height: 24px; - } + .MuiButtonBase-root { + color: ${({ namespace }) => + namespace === NameSpaceEnum.Main ? colors.primary : colors.secondary}; + font-size: 14px; + } - .hide-modal { - color: ${colors.warning}; - } + .hide-modal { + color: ${colors.warning}; + } - .delete-modal { - color: #ca1105; - } + .delete-modal { + color: #ca1105; + } `; const ModalCancelButton = styled(Button)` height: 40px; width: 120px; color: ${({ namespace }) => - namespace === NameSpaceEnum.Main - ? colors.primary - : colors.secondary}; + namespace === NameSpaceEnum.Main + ? colors.primary + : colors.secondary}; text-align: "center"; font-weight: 700; font-size: 14; `; +interface AletheiaModalProps { + open: boolean; + closeIcon?: React.ReactNode; + width?: string; + theme?: string; + namespace?: NameSpaceEnum; + onCancel?: () => void; + style?: React.CSSProperties; + title?: React.ReactNode; + children: React.ReactNode; +} + +const AletheiaModal: React.FC = ({ + open, + closeIcon = true, + onCancel, + style = {}, + title, + children, + width, + theme, + namespace +}) => ( + + + {title} + {typeof closeIcon === 'boolean' ? ( + + + + ) : ( + + {closeIcon} + + )} + + {children} + +); + export { AletheiaModal, ModalCancelButton }; diff --git a/src/components/Modal/ModalButtons.tsx b/src/components/Modal/ModalButtons.tsx index 7d5e67294..be564ad58 100644 --- a/src/components/Modal/ModalButtons.tsx +++ b/src/components/Modal/ModalButtons.tsx @@ -1,4 +1,4 @@ -import { Col } from "antd"; +import { Grid } from "@mui/material"; import React from "react"; import { ModalCancelButton } from "./AletheiaModal.style"; import AletheiaButton, { ButtonType } from "../Button"; @@ -8,7 +8,7 @@ const ModalButtons = ({ isLoading, hasCaptcha, handleCancel = null }) => { const { t } = useTranslation(); return ( - { }} > {handleCancel && ( - handleCancel()}> + handleCancel()}> { > {t("orderModal:okButton")} - + ); }; diff --git a/src/components/Modal/OrderModal.tsx b/src/components/Modal/OrderModal.tsx index 4af125db2..42f4d3525 100644 --- a/src/components/Modal/OrderModal.tsx +++ b/src/components/Modal/OrderModal.tsx @@ -13,15 +13,26 @@ const OrderModal = ({ open, value, setValue, handleOk, handleCancel }) => { return ( + {t("orderModal:title")} + + } > - +
{ justifyContent: "space-between", }} > - + +

+ {updatingHideStatus ? ( + + ) : ( + + )} + {contentTitle} +

+

{contentBody}

+ + + } > -

- {updatingHideStatus ? ( - - ) : ( - - )} - {contentTitle} -

-

{contentBody}

+ +
+ {hasDescription && ( + +