Skip to content

Commit

Permalink
feat(messages): add messageReceived to colors
Browse files Browse the repository at this point in the history
fixes #176
  • Loading branch information
nolimits4web committed Oct 20, 2023
1 parent f48b2d0 commit 6b51367
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shared/classes/MessageClasses.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const MessageClasses = (props, colors) => {
common: cls('self-end', colors.messageSent),
},
messageReceived: {
common: '',
common: colors.messageReceived,
},
messageName: {
common: 'text-xs',
Expand Down
1 change: 1 addition & 0 deletions src/shared/colors/MessageColors.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { cls } from '../cls.js';
export const MessageColors = (colorsProp = {}, dark) => {
return {
messageSent: 'text-white',
messageReceived: 'text-inherit',
messageNameIos: cls(
'text-black text-opacity-45',
dark('dark:text-white dark:text-opacity-45')
Expand Down
4 changes: 2 additions & 2 deletions src/types/Message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ interface Props {
*
* @default 'bg-primary'
*/
messageSentIos?: string;
bubbleSentIos?: string;
/**
*
* @default 'bg-md-light-primary dark:bg-md-dark-primary dark:text-md-dark-on-primary'
*/
messageSentMd?: string;
bubbleSentMd?: string;
/**
*
* @default 'bg-[#e5e5ea] dark:bg-[#252525]'
Expand Down

0 comments on commit 6b51367

Please sign in to comment.