Skip to content

Commit

Permalink
Merge branch 'master' into test-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 authored Apr 22, 2024
2 parents e40a9ca + 2d88278 commit f3e3e97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/containers/Auth/Promotion/Promotion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Promotion = () => {

{!minimized && (
<>
<div className={styles.Image}>Glific payment timelines & late payment consequences</div>
<div className={styles.Image}>Glific payment timelines & late payment policy</div>

<div className={styles.Points}>
<div className={styles.BodyListText}>
Expand Down
11 changes: 4 additions & 7 deletions src/containers/Chat/ChatMessages/ChatInput/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export const ChatInput = ({
setAttachmentAdded(false);
setAttachmentURL('');
setAttachmentType('');
resetVariable();
}
},
});
Expand Down Expand Up @@ -205,14 +204,13 @@ export const ChatInput = ({
null,
Number(selectedTemplate.id)
);
resetVariable();
// else the type will by default be text
} else {
onSendMessage(message, null, 'TEXT', selectedTemplate, variableParam);
resetVariable();
}

// Resetting the EditorState
resetVariable();
editor.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
editor.focus();
};
Expand Down Expand Up @@ -291,6 +289,8 @@ export const ChatInput = ({
const handleCancel = () => {
resetAttachment();
resetVariable();
editor.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
editor.focus();
};

const updateEditorState = (body: string) => {
Expand Down Expand Up @@ -486,10 +486,7 @@ export const ChatInput = ({
<Tooltip title={t('Remove message')} placement="top">
<IconButton
className={updatedEditorState ? styles.CrossIcon : styles.CrossIconWithVariable}
onClick={() => {
resetVariable();
resetAttachment();
}}
onClick={handleCancel}
>
<CrossIcon />
</IconButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
max-width: 404px;
float: right;
clear: both;
display: flex;
flex-direction: column;
align-items: flex-end;
}

.MineColor {
Expand Down Expand Up @@ -156,6 +159,8 @@
font-size: 10px;
font-weight: 400;
line-height: 17px;
text-align: end;
max-width: 284px;
}

.MessageDetailsSender {
Expand Down Expand Up @@ -232,6 +237,7 @@

.InteractiveContent {
padding: 0px !important;
min-width: 284px;
}

.Label {
Expand Down

0 comments on commit f3e3e97

Please sign in to comment.