From c70aa528b964b0d27abecf84a92fb4b2fc7d22fa Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Tue, 13 Feb 2024 14:53:29 +0900 Subject: [PATCH] ui fixes and adds more status codes to registry --- ui/src/components/App.tsx | 2 +- ui/src/components/Sidebar.tsx | 2 +- ui/src/components/elements/ApiActionInfo.tsx | 2 +- .../components/elements/ApiActionRequest.tsx | 4 +- ui/src/components/elements/ApiActionTabs.tsx | 7 +-- ui/src/global.css | 13 ++++- ui/src/libs/constants.tsx | 51 ++++++++++++++++++- 7 files changed, 69 insertions(+), 12 deletions(-) diff --git a/ui/src/components/App.tsx b/ui/src/components/App.tsx index 96493ad..fb1814c 100644 --- a/ui/src/components/App.tsx +++ b/ui/src/components/App.tsx @@ -29,7 +29,7 @@ export default function App() { const [showDelete] = useLocalStorage('showDelete', 'true'); const [showPut] = useLocalStorage('showPut', 'true'); const [showPatch] = useLocalStorage('showPatch', 'true'); - const [showHead] = useLocalStorage('showHead', 'true'); + const [showHead] = useLocalStorage('showHead', 'false'); const searchOptions = { keys: ['uri', 'doc_block'], diff --git a/ui/src/components/Sidebar.tsx b/ui/src/components/Sidebar.tsx index 025ec00..f50eb03 100644 --- a/ui/src/components/Sidebar.tsx +++ b/ui/src/components/Sidebar.tsx @@ -13,7 +13,7 @@ export default function Sidebar(props: Props) { return ( <> -