Skip to content

Commit

Permalink
separated hsm and speed sends
Browse files Browse the repository at this point in the history
akanshaaa19 committed Sep 4, 2024
1 parent 261cba3 commit ce6857a
Showing 10 changed files with 2,085 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/components/UI/ImgFallback/ImgFallback.tsx
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ const ImgFallback = ({ src, alt, ...rest }: ImgProps) => {
const imgRef: any = useRef<HTMLImageElement>();

useEffect(() => {
setImgSrc(src);
setImgSrc(src || FallbackImage);
}, [src]);

return (
8 changes: 5 additions & 3 deletions src/containers/Form/FormLayout.tsx
Original file line number Diff line number Diff line change
@@ -433,7 +433,7 @@ export const FormLayout = ({
}
});
// for template create media for attachment
if (isAttachment && payload.type !== 'TEXT' && payload.type) {
if (isAttachment && payload.type && payload.type !== 'TEXT') {
getMediaId(payload)
.then((data: any) => {
if (data) {
@@ -571,8 +571,10 @@ export const FormLayout = ({
variant="contained"
color="primary"
onClick={() => {
onSaveButtonClick(formik.errors);
formik.submitForm();
formik.validateForm().then((errors) => {
onSaveButtonClick(errors);
formik.submitForm();
});
}}
className={styles.Button}
data-testid="submitActionButton"
102 changes: 102 additions & 0 deletions src/containers/Template/HSM/HSM.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
.Template {
margin: 20px auto;
width: 80%;
text-align: center;
box-shadow: 0 2px 3px #cccccc;
border: 1px solid #eeeeee;
padding: 10px;
box-sizing: border-box;
}

@media (min-width: 600px) {
.Template {
width: 500px;
}
}

.DeleteIcon {
margin-right: 9px !important;
}

.DialogText {
margin-top: 0px;
text-align: center;
color: #073f24;
font-weight: 400;
}

.DeleteButton {
margin-left: auto !important;
}

.Title {
margin-left: 24px !important;
margin-top: 16px !important;
vertical-align: middle;
font-weight: 500 !important;
color: #073f24;
}

.Input {
display: flex;
padding: 8px;
}

.Label {
width: 50%;
align-self: center;
font-weight: bold;
}

.TemplateAdd {
width: fit-content;
}

.Form {
padding: 16px 16px;
width: 470px;
}

.Buttons {
margin-top: 24px;
margin-left: 8px;
display: flex;
justify-content: flex-start;
}

.Icon {
background-color: #eaedec !important;
margin-right: 10px !important;
}

.ButtonsCenter {
justify-content: center !important;
}

.Button {
margin-right: 24px !important;
}

.Warning {
color: #ff0000;
margin-left: -43px;
}

.IsActive {
color: #555555;
font-weight: 400;
line-height: 18px;
font-size: 16px;
}

.TemplateIcon {
width: 29px;
height: 29px;
}

.Checkbox {
color: #555555;
font-weight: 400;
line-height: 18px;
font-size: 16px;
}
Loading

0 comments on commit ce6857a

Please sign in to comment.