Fix story quote custom color

This commit is contained in:
Josh Perez 2022-07-06 12:34:01 -04:00 committed by GitHub
parent 5d1702c2fe
commit 2d6d817f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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')}>