Fix story quote custom color
This commit is contained in:
parent
5d1702c2fe
commit
2d6d817f58
1 changed files with 4 additions and 1 deletions
|
@ -518,15 +518,18 @@ export class Quote extends React.Component<Props, State> {
|
|||
return null;
|
||||
}
|
||||
|
||||
let colorClassName: string;
|
||||
let directionClassName: string;
|
||||
if (isCompose) {
|
||||
directionClassName = this.getClassName('--compose');
|
||||
colorClassName = this.getClassName(`--compose-${conversationColor}`);
|
||||
} else if (isIncoming) {
|
||||
directionClassName = this.getClassName('--incoming');
|
||||
colorClassName = this.getClassName(`--incoming-${conversationColor}`);
|
||||
} else {
|
||||
directionClassName = this.getClassName('--outgoing');
|
||||
colorClassName = this.getClassName(`--outgoing-${conversationColor}`);
|
||||
}
|
||||
const colorClassName = `${directionClassName}-${conversationColor}`;
|
||||
|
||||
return (
|
||||
<div className={this.getClassName('__container')}>
|
||||
|
|
Loading…
Add table
Reference in a new issue