-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* stashed files added * signin page ui * renamed file * fixed linting issues * integrated rainbow wallet * integrated metamask wallet & fixed home image strech issue * fixed error message * removed provider check * removed fontawesome library & added svg image * added user profile page * integrated user contact list * changed color of contact background on hover * created hamburger menu ui * removed unused import * fixed prettier issue * created contacts action menu * added contact menu list * UI for user contact page * contact info page * add conversation UI * integrated add conversation modal * integrated preferences modal * optimized code * removed unused code & fixed linting * changed let to const * UI for profile configuration * added error messages * Configure user profile * removed unused parameter * fixed prettier issue * env test * hide contact integrated * modified condition check * profile not configured info box * env test * chat screen * chat message UI * library function integration for chat * removed unused code * message actions * fixed user config profile method --------- Co-authored-by: Bhupesh-MS <[email protected]> Co-authored-by: Heiko Burkhardt <[email protected]>
- Loading branch information
1 parent
065f15b
commit 32a7680
Showing
9 changed files
with
153 additions
and
22 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
packages/messenger-widget/src/components/MessageAction/MessageAction.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.msg-dropdown-content { | ||
flex-direction: column; | ||
position: absolute; | ||
background-color: var(--background-container); | ||
min-width: 160px; | ||
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); | ||
z-index: 1; | ||
border: 1px solid #000000; | ||
border-radius: 5px; | ||
} | ||
|
||
.own-msg { | ||
margin-top: 1rem; | ||
margin-left: -9rem; | ||
} | ||
|
||
.contact-msg { | ||
margin-top: 1rem; | ||
} | ||
|
||
.msg-dropdown-content-top-align { | ||
margin-top: -6.9rem !important; | ||
} | ||
|
||
.msg-dropdown-content div { | ||
color: var(--text-primary-color); | ||
padding: 0.5rem 0.5rem 0.5rem 1rem; | ||
} | ||
|
||
.msg-dropdown-content div:hover { | ||
background-color: var(--normal-btn); | ||
} |
33 changes: 33 additions & 0 deletions
33
packages/messenger-widget/src/components/MessageAction/MessageAction.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import './MessageAction.css'; | ||
import editIcon from '../../assets/images/edit.svg'; | ||
import replyIcon from '../../assets/images/reply.svg'; | ||
import deleteIcon from '../../assets/images/chat-delete.svg'; | ||
import { MessageProps } from '../../interfaces/props'; | ||
|
||
export function MessageAction(props: MessageProps) { | ||
return ( | ||
<div | ||
className={'msg-dropdown-content font-size-14 font-weight-400'.concat( | ||
' ', | ||
props.ownMessage ? 'own-msg' : 'contact-msg', | ||
)} | ||
> | ||
{props.ownMessage && ( | ||
<> | ||
<div className="d-flex align-items-center justify-content-start"> | ||
<img src={editIcon} alt="edit" className="me-2" /> | ||
Edit | ||
</div> | ||
<div className="d-flex align-items-center justify-content-start"> | ||
<img src={deleteIcon} alt="delete" className="me-2" /> | ||
Delete | ||
</div> | ||
</> | ||
)} | ||
<div className="d-flex align-items-center justify-content-start"> | ||
<img src={replyIcon} alt="delete" className="me-2" /> | ||
Reply | ||
</div> | ||
</div> | ||
); | ||
} |