Skip to content

Commit

Permalink
fixed MUI span error
Browse files Browse the repository at this point in the history
  • Loading branch information
rosannamilner committed Aug 20, 2024
1 parent ccc8ba5 commit 85e62cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ const AssistantTextResult = () => {
<Collapse in={expanded} collapsedSize={100} id={"element-to-check"}>
<Typography component={"div"} sx={{ textAlign: "start" }}>
{/*{!displayOrigLang && translatedText ? translatedText : text}*/}
{textHtmlOutput && textHtmlOutput}
{!textHtmlOutput && text}
{textHtmlOutput ?? text}
</Typography>
</Collapse>
</CardContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import { styled } from "@mui/system";

// Had to create a custom styled span as the default style attribute does not support
// :hover metaclass
const StyledSpan = styled("span")();
const StyledSpan = styled("span")(({ theme }) => ({
...theme,
}));

export default function AssistantTextSpanClassification({
text,
Expand Down

0 comments on commit 85e62cb

Please sign in to comment.