Skip to content

Commit

Permalink
Use icon with image
Browse files Browse the repository at this point in the history
  • Loading branch information
antti-manninen-vmv committed Oct 3, 2024
1 parent bc3f3fe commit b029157
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import React, { useRef, ChangeEvent, useContext } from 'react'
import { EditableProps } from '../../context/GradingInstructionContext'
import { QuestionContext } from '../../context/QuestionContext'
import { CommonExamContext } from '../../context/CommonExamContext'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faImage } from '@fortawesome/free-solid-svg-icons'

enum EditorAction {
REMOVE_IMAGE = 'REMOVE_IMAGE',
Expand Down Expand Up @@ -76,7 +78,10 @@ export function ImageUploadButton({ saveImage }: { saveImage: EditableProps['onS

return (
<>
<button onClick={handleButtonClick}>Lisää kuva</button>
<button onClick={handleButtonClick}>
{' '}
<FontAwesomeIcon size="lg" icon={faImage} className="editor-menu-icon" fixedWidth />
</button>
<input
type="file"
accept="image/png, image/jpeg, image/tiff"
Expand Down

0 comments on commit b029157

Please sign in to comment.