CURL first

This commit is contained in:
Karol Wypchlo 2020-02-14 17:08:14 -05:00
parent 10814728b2
commit 356198d61c
1 changed files with 6 additions and 6 deletions

View File

@ -13,10 +13,10 @@ export default function CodeExamples() {
<div className="code-examples">
<ul className="code-examples-tabs">
<li onClick={() => setActive(1)} className={classNames({ active: active === 1 })}>
Python
CURL
</li>
<li onClick={() => setActive(2)} className={classNames({ active: active === 2 })}>
CURL
Python
</li>
<li onClick={() => setActive(3)} className={classNames({ active: active === 3 })}>
Node.js
@ -28,14 +28,14 @@ export default function CodeExamples() {
<div className="code-examples-body">
{active === 1 && (
<SyntaxHighlighter wrapLines showLineNumbers={true} language="python" style={Colors}>
{python}
<SyntaxHighlighter wrapLines showLineNumbers={true} language="curl" style={Colors}>
{curl}
</SyntaxHighlighter>
)}
{active === 2 && (
<SyntaxHighlighter wrapLines showLineNumbers={true} language="curl" style={Colors}>
{curl}
<SyntaxHighlighter wrapLines showLineNumbers={true} language="python" style={Colors}>
{python}
</SyntaxHighlighter>
)}