diff --git a/src/components/DevAreaTools/JSONFormatter.jsx b/src/components/DevAreaTools/JSONFormatter.jsx index 5e21031..b48e5df 100644 --- a/src/components/DevAreaTools/JSONFormatter.jsx +++ b/src/components/DevAreaTools/JSONFormatter.jsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { Input, Button, Alert } from 'antd'; -import JSONPretty from 'react-json-pretty'; // You might need to install this library for pretty JSON output -import 'react-json-pretty/themes/monikai.css'; // Optional: import a theme for JSONPretty +import JSONPretty from 'react-json-pretty'; +import 'react-json-pretty/themes/monikai.css'; import { toast } from 'sonner'; const JSONFormatter = () => { @@ -39,29 +39,29 @@ const JSONFormatter = () => { }; return ( -
-

JSON Formatter

+
+

JSON Formatter

setJsonInput(e.target.value)} placeholder="Paste your JSON here" autoSize={{ minRows: 10 }} - className='mb-4 dark:bg-dark dark:text-white' + className="mb-4 dark:bg-dark dark:text-white" /> -
- - -
- {error && } + {error && } {formattedJson && ( -
+
navigator.clipboard.writeText(JSON.stringify(data, null, 2))} />
)} diff --git a/src/components/Search/SearchInput.jsx b/src/components/Search/SearchInput.jsx index 0c3e6aa..64f105a 100644 --- a/src/components/Search/SearchInput.jsx +++ b/src/components/Search/SearchInput.jsx @@ -60,6 +60,8 @@ function SearchInput({ search, setSearch, setType }) { }} /> + +