mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
clean up code
This commit is contained in:
1 parent
84a4856097
commit
d1eee17daa
1 file changed
+3
-3
@@ -55,7 +55,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {
|
||||
>
|
||||
<RefSubLayout.Details>
|
||||
<>
|
||||
<header className={['mb-16'].join(' ')}>
|
||||
<header className={['prose'].join(' ')}>
|
||||
{shortText && <ReactMarkdown className="text-sm">{shortText}</ReactMarkdown>}
|
||||
</header>
|
||||
|
||||
@@ -194,7 +194,7 @@ const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key
|
||||
>
|
||||
{exampleString +
|
||||
(example.code &&
|
||||
example.code.replace('```', '').replace('js', '').replace('```', ''))}
|
||||
example.code.replace(/```/g, '').replace('js', '').replace('ts', ''))}
|
||||
</CodeBlock>
|
||||
{response && (
|
||||
<RefDetailCollapse
|
||||
@@ -207,7 +207,7 @@ const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key
|
||||
language="js"
|
||||
hideLineNumbers={true}
|
||||
>
|
||||
{response.replace('```', '').replace('json', '').replace('```', '')}
|
||||
{response.replace(/```/g, '').replace('json', '')}
|
||||
</CodeBlock>
|
||||
</RefDetailCollapse>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user