CURL first
This commit is contained in:
parent
10814728b2
commit
356198d61c
|
@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
Reference in New Issue