Skip to content

Commit 4de2df5

Browse files
committed
underline text
1 parent 5fbf759 commit 4de2df5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/TextEditor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ const TextEditor = () => {
154154
variant="h5"
155155
color="initial"
156156
fontWeight={formats.includes("bold") ? "bold" : 100}
157-
sx={{ wordBreak: "break-all" }}
157+
fontStyle={formats.includes("italic") && "italic"}
158+
sx={{ wordBreak: "break-all",textDecoration:formats.includes("underlined") && "underline" }}
158159
>
159160
{inputVal}
160161
{/* {testText} */}

0 commit comments

Comments
 (0)