mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: unknown message styling
This commit is contained in:
parent
ba729de340
commit
bc0a9d5151
@ -30,7 +30,17 @@ const FileMessage: React.FC<FileMessageProps> = ({ message }) => {
|
||||
throw new Error("Unable to detect type for file message");
|
||||
}
|
||||
if (message.data.type === "unknown") {
|
||||
return <p className="error-message">unknown file type</p>;
|
||||
return (
|
||||
<div
|
||||
className="sc-message--file"
|
||||
style={{
|
||||
color: colors.text,
|
||||
backgroundColor: colors.bg,
|
||||
}}
|
||||
>
|
||||
<p className="error-message">{t("messages.unsupported_file_type")}</p>;
|
||||
</div>
|
||||
);
|
||||
}
|
||||
if (
|
||||
message.data &&
|
||||
|
Loading…
Reference in New Issue
Block a user