From ea0871622a4305b8f837f6f188b27f547f29d229 Mon Sep 17 00:00:00 2001 From: Yash patil <149749700+PATILYASHH@users.noreply.github.com> Date: Wed, 7 Aug 2024 18:51:16 +0530 Subject: [PATCH] Responsive button (#251) * added white color in modal * search box tex color fixed * color changed of search input text * search text fixed * button distance fixed * issue Add space in buttons #248 solved --- src/components/DevAreaTools/JSONFormatter.jsx | 22 +++++++++---------- src/components/Search/SearchInput.jsx | 2 ++ 2 files changed, 13 insertions(+), 11 deletions(-) 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 }) { }} /> + +