Update themed components with refs and css
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
import type { MessageBlockProps } from "$/types/MessageTypes";
|
||||
import clsx from "clsx";
|
||||
import { forwardRef } from "react";
|
||||
import MessageBlock from "./MessageBlock";
|
||||
|
||||
|
||||
export default function LightMessageBlock(props: MessageBlockProps){
|
||||
const {
|
||||
className,
|
||||
...messageProps
|
||||
} = props;
|
||||
|
||||
|
||||
const LightMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
|
||||
className,
|
||||
...messageProps
|
||||
}, ref ) => {
|
||||
return (
|
||||
<MessageBlock
|
||||
data-testid="mattrixwv-light-message-block"
|
||||
@@ -18,6 +16,11 @@ export default function LightMessageBlock(props: MessageBlockProps){
|
||||
className,
|
||||
"bg-white text-black"
|
||||
)}
|
||||
ref={ref}
|
||||
/>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
LightMessageBlock.displayName = "LightMessageBlock";
|
||||
|
||||
export default LightMessageBlock;
|
||||
|
||||
Reference in New Issue
Block a user