diff --git a/pages/developers/docs/[first]/[second].tsx b/pages/developers/docs/[first]/[second].tsx index fb7e0e2..4f59449 100644 --- a/pages/developers/docs/[first]/[second].tsx +++ b/pages/developers/docs/[first]/[second].tsx @@ -31,7 +31,7 @@ const Docs: NextPage = ({ docs }) => {
{ !document ? '' - : + : }
@@ -72,6 +72,18 @@ export async function getStaticProps () { } } +function code({ children }:{ children: string }):JSX.Element { + const methods = { + get: 'text-green-400', + post: 'text-yellow-400', + put: 'text-blue-500', + patch: 'text-yellow-400', + delete: 'text-red-500' + } + return + {children} + +} function highlightBlocks() { const nodes = window.document.querySelectorAll('pre code') nodes.forEach(el => {