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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let colorClassName: string;
|
||||||
let directionClassName: string;
|
let directionClassName: string;
|
||||||
if (isCompose) {
|
if (isCompose) {
|
||||||
directionClassName = this.getClassName('--compose');
|
directionClassName = this.getClassName('--compose');
|
||||||
|
colorClassName = this.getClassName(`--compose-${conversationColor}`);
|
||||||
} else if (isIncoming) {
|
} else if (isIncoming) {
|
||||||
directionClassName = this.getClassName('--incoming');
|
directionClassName = this.getClassName('--incoming');
|
||||||
|
colorClassName = this.getClassName(`--incoming-${conversationColor}`);
|
||||||
} else {
|
} else {
|
||||||
directionClassName = this.getClassName('--outgoing');
|
directionClassName = this.getClassName('--outgoing');
|
||||||
|
colorClassName = this.getClassName(`--outgoing-${conversationColor}`);
|
||||||
}
|
}
|
||||||
const colorClassName = `${directionClassName}-${conversationColor}`;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={this.getClassName('__container')}>
|
<div className={this.getClassName('__container')}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue