From 453f35488bd9acbdd454827d2744886cbe791654 Mon Sep 17 00:00:00 2001 From: Emily McMinn Date: Thu, 22 Aug 2024 13:32:08 -0400 Subject: [PATCH] lint --- src/components/Wizard/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Wizard/index.tsx b/src/components/Wizard/index.tsx index 02f9bb3..ef3fdf4 100644 --- a/src/components/Wizard/index.tsx +++ b/src/components/Wizard/index.tsx @@ -169,15 +169,15 @@ export default function Wizard({ } }; - const encodePreview = (jsonStr): string => { + const encodePreview = (jsonStr: string): string => { const codeUnits = new Uint16Array(jsonStr.length); for (let i = 0; i < codeUnits.length; i++) { codeUnits[i] = jsonStr.charCodeAt(i); } return btoa( - String.fromCharCode(...Array.from(new Uint8Array(codeUnits.buffer))), + String.fromCharCode(...Array.from(new Uint8Array(codeUnits.buffer))) ); - } + }; const handlePreview = async (): Promise => { try { @@ -185,7 +185,7 @@ export default function Wizard({ if (json) { const jsonStr = JSON.stringify(json); const uri = `about:messagepreview?json=${encodeURIComponent( - encodePreview(jsonStr), + encodePreview(jsonStr) )}`; addToast("Success", "Copied!", { autohide: true });