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