File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default function Home() {
1717
1818 const handleFormat = ( ) => {
1919 try {
20- setOutputString ( JSON . stringify ( JSON . parse ( inputString ) , null , 2 ) ) ;
20+ setOutputString ( JSON . stringify ( JSON . parse ( inputString ) , null , 4 ) ) ;
2121 } catch ( error ) {
2222 Toastr . error ( "Enter Valid JSON" ) ;
2323 }
@@ -75,9 +75,9 @@ export default function Home() {
7575 />
7676 </ div >
7777 < div className = "flex bg-zinc-800 space-x-3 px-3 py-3 rounded spacy-x-2" >
78- < Button className = "" label = "Format" onClick = { handleFormat } />
79- < Button className = "" label = "Clear" onClick = { handleClear } />
80- < Button className = "" label = "Download" onClick = { handleDownload } />
78+ < Button label = "Format" onClick = { handleFormat } />
79+ < Button label = "Clear" onClick = { handleClear } />
80+ < Button label = "Download" onClick = { handleDownload } />
8181 </ div >
8282 </ div >
8383 { /* <Footer /> */ }
You can’t perform that action at this time.
0 commit comments