Skip to content

Commit 993e5e7

Browse files
Disabled download button
1 parent abd34f9 commit 993e5e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pages/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ export default function Home() {
114114
<div className="flex bg-zinc-800 space-x-3 px-3 py-3 rounded spacy-x-2">
115115
<Button label="Format" onClick={handleFormat} />
116116
<Button label="Clear" onClick={handleClear} />
117-
<Button label="Download" onClick={handleDownload} />
117+
<Button
118+
label="Download"
119+
onClick={handleDownload}
120+
disabled={outputString === ""}
121+
/>
118122
</div>
119123
</div>
120124
{/* <Footer /> */}

0 commit comments

Comments
 (0)