Skip to content

Commit bc0a9d5

Browse files
committed
fix: unknown message styling
1 parent ba729de commit bc0a9d5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

widget/src/components/messages/FileMessage.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,17 @@ const FileMessage: React.FC<FileMessageProps> = ({ message }) => {
3030
throw new Error("Unable to detect type for file message");
3131
}
3232
if (message.data.type === "unknown") {
33-
return <p className="error-message">unknown file type</p>;
33+
return (
34+
<div
35+
className="sc-message--file"
36+
style={{
37+
color: colors.text,
38+
backgroundColor: colors.bg,
39+
}}
40+
>
41+
<p className="error-message">{t("messages.unsupported_file_type")}</p>;
42+
</div>
43+
);
3444
}
3545
if (
3646
message.data &&

0 commit comments

Comments
 (0)