Skip to content

Commit

Permalink
remove arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
Inga-Vishnivetskaia committed Jul 7, 2023
1 parent 6ab178d commit f4ca4bb
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ const InfoModal = ({ message, close }: InfoModalProps): JSX.Element => {
{isPasteError ? <PasteErrorModalBody /> : message}
</div>
<footer>
<button
className={styles.ok}
onClick={() => {
close()
}}
>
<button className={styles.ok} onClick={close}>
{error.close}
</button>
</footer>
Expand Down

0 comments on commit f4ca4bb

Please sign in to comment.