Skip to content

Commit

Permalink
React: Fix "Invalid DOM property class" in JSX SVG
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed May 31, 2023
1 parent b7ee5c1 commit bd155aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/comments/editorIconConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ export const iconConfig = {
keyCommand: 'upload',
buttonProps: { 'aria-label': 'Upload user', title: 'Upload image' },
icon: (
<svg width={ICON_SIZE} height={ICON_SIZE} x="0" y="0" viewBox="0 0 24 24" class="">
<svg width={ICON_SIZE} height={ICON_SIZE} x="0" y="0" viewBox="0 0 24 24" className="">
<g>
<path
id="image-upload"
d="m21.75 11v6a3.383 3.383 0 0 1 -3.75 3.75h-12a3.383 3.383 0 0 1 -3.75-3.75v-10a3.383 3.383 0 0 1 3.75-3.75h8a.75.75 0 0 1 0 1.5h-8c-1.577 0-2.25.673-2.25 2.25v9.25l2.54-2.54a1.008 1.008 0 0 1 1.42 0l.94.94a.5.5 0 0 0 .7 0l4.94-4.94a1.008 1.008 0 0 1 1.42 0l4.54 4.54v-3.25a.75.75 0 0 1 1.5 0zm-13.757-3.25a1.253 1.253 0 1 0 .007 0zm10.537-2.72.22-.219v2.189a.75.75 0 0 0 1.5 0v-2.189l.22.219a.75.75 0 0 0 1.06-1.06l-1.5-1.5a.751.751 0 0 0 -1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06z"
fill="#000000"
data-original="#000000"
class=""
className=""
></path>
</g>
</svg>
Expand Down

0 comments on commit bd155aa

Please sign in to comment.