mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
feat(docs): add github link to troubleshooting articles (#36000)
This commit is contained in:
1 parent
f908da2ccf
commit
0e2183f5b1
1 file changed
+15
-2
@@ -1,11 +1,11 @@
|
||||
import { Github } from 'lucide-react'
|
||||
import Link from 'next/link'
|
||||
import { cn } from 'ui'
|
||||
|
||||
import Breadcrumbs from '~/components/Breadcrumbs'
|
||||
import { Feedback } from '~/components/Feedback'
|
||||
import { SidebarSkeleton } from '~/layouts/MainSkeleton'
|
||||
import { MDXRemoteBase } from './MdxBase'
|
||||
import { getTroubleshootingUpdatedDates, type ITroubleshootingEntry } from './Troubleshooting.utils'
|
||||
import Link from 'next/link'
|
||||
import { formatError, serializeTroubleshootingSearchParams } from './Troubleshooting.utils.shared'
|
||||
|
||||
export default async function TroubleshootingPage({ entry }: { entry: ITroubleshootingEntry }) {
|
||||
@@ -95,6 +95,19 @@ export default async function TroubleshootingPage({ entry }: { entry: ITroublesh
|
||||
</>
|
||||
)}
|
||||
<Feedback className="px-0 mb-6 lg:mb-8" />
|
||||
{entry.data.github_url && (
|
||||
<>
|
||||
<hr className="my-6" aria-hidden />
|
||||
<Link
|
||||
target="_blank"
|
||||
href={entry.data.github_url}
|
||||
className="flex items-center gap-2 text-sm text-foreground-lighter"
|
||||
>
|
||||
<Github size={14} />
|
||||
View discussion on GitHub
|
||||
</Link>
|
||||
</>
|
||||
)}
|
||||
</aside>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
Reference in new issue
Block a user