-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Ticket https://sendbird.atlassian.net/browse/AC-3349 ### Changelog - Improved user interface and experience of form message feature ### Note discussion: https://sendbird.slack.com/archives/C0772Q0BB8Q/p1721093737987559?thread_ts=1720573872.559059&cid=C0772Q0BB8Q Also belows are resolved in this PR: - https://sendbird.atlassian.net/browse/AC-3111 - https://sendbird.atlassian.net/browse/AC-3010 - https://sendbird.atlassian.net/browse/AC-2782
- Loading branch information
Showing
8 changed files
with
245 additions
and
116 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import styled from 'styled-components'; | ||
|
||
interface FallbackUserMessageProps { | ||
text: string; | ||
} | ||
|
||
const Container = styled.div` | ||
position: relative; | ||
display: inline-block; | ||
box-sizing: border-box; | ||
padding: 8px 12px; | ||
border-radius: 16px; | ||
background-color: ${({ theme }) => theme.bgColor.incomingMessage}; | ||
`; | ||
|
||
const Label = styled.div` | ||
color: ${({ theme }) => theme.textColor.placeholder}; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 20px; | ||
`; | ||
|
||
export default function FallbackUserMessage({ text }: FallbackUserMessageProps) { | ||
return ( | ||
<Container> | ||
<Label>{text}</Label> | ||
</Container> | ||
); | ||
} |
Oops, something went wrong.