Skip to content

Commit 5884c7e

Browse files
fix: seperate messages/schema from operation in sidebar (#1140)
Co-authored-by: acethecreator <[email protected]> Co-authored-by: Chan <[email protected]>
1 parent 459c0d7 commit 5884c7e

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

library/src/containers/Sidebar/Sidebar.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,16 @@ export const Sidebar: React.FunctionComponent = () => {
7878
);
7979

8080
const operationList = hasOperations && (
81-
<>
82-
<li className="mb-3 mt-9">
83-
<a
84-
className="text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900"
85-
href="#operations"
86-
onClick={() => setShowSidebar(false)}
87-
>
88-
Operations
89-
</a>
90-
<OperationsList />
91-
</li>
92-
{showMessages && messagesList}
93-
{showSchemas && schemasList}
94-
</>
81+
<li className="mb-3 mt-9">
82+
<a
83+
className="text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900"
84+
href="#operations"
85+
onClick={() => setShowSidebar(false)}
86+
>
87+
Operations
88+
</a>
89+
<OperationsList />
90+
</li>
9591
);
9692

9793
return (
@@ -161,6 +157,8 @@ export const Sidebar: React.FunctionComponent = () => {
161157
</li>
162158
)}
163159
{operationList}
160+
{showMessages && messagesList}
161+
{showSchemas && schemasList}
164162
</ul>
165163
</div>
166164
</div>

0 commit comments

Comments
 (0)