Skip to content

Commit 7c18997

Browse files
authored
fix(studio): troubleshooting links (supabase#39916)
* clean slate fixes * remove testing ternary
1 parent e27602f commit 7c18997

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

apps/studio/components/interfaces/Support/SubjectAndSuggestionsInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ interface GitHubDiscussionSuggestionProps {
5454
function GitHubDiscussionSuggestion({ subject }: GitHubDiscussionSuggestionProps) {
5555
return (
5656
<p className="flex items-center gap-x-1 text-foreground-lighter text-sm">
57-
<span>Check our </span>
57+
Check our
5858
<Link
5959
key="gh-discussions"
6060
href={`https://github.com/orgs/supabase/discussions?discussions_q=${subject}`}
@@ -65,7 +65,7 @@ function GitHubDiscussionSuggestion({ subject }: GitHubDiscussionSuggestionProps
6565
GitHub discussions
6666
<ExternalLink size={14} strokeWidth={2} />
6767
</Link>
68-
<span> for a quick answer</span>
68+
for a quick answer
6969
</p>
7070
)
7171
}

apps/studio/components/interfaces/Support/SupportFormPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import type { SupportFormValues } from './SupportForm.schema'
2323
import {
2424
createInitialSupportFormState,
2525
type SupportFormActions,
26-
type SupportFormState,
2726
supportFormReducer,
27+
type SupportFormState,
2828
} from './SupportForm.state'
2929
import { SupportFormV2 } from './SupportFormV2'
3030
import { useSupportForm } from './useSupportForm'
@@ -125,7 +125,7 @@ function SupportFormHeader() {
125125
<div className="flex items-center gap-x-3">
126126
<Button asChild type="default" icon={<Wrench />}>
127127
<Link
128-
href={`${DOCS_URL}/guides/platform/troubleshooting`}
128+
href={`${DOCS_URL}/guides/troubleshooting?products=platform`}
129129
target="_blank"
130130
rel="noreferrer"
131131
>

apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {
9191
</Button>
9292
<Button asChild type="default" icon={<ExternalLink strokeWidth={1.5} />}>
9393
<Link
94-
href={`${DOCS_URL}/guides/platform/troubleshooting#unable-to-connect-to-your-supabase-project`}
94+
href={`${DOCS_URL}/guides/troubleshooting?products=platform#unable-to-connect-to-your-supabase-project`}
9595
className="translate-y-[1px]"
9696
>
9797
Troubleshooting

apps/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization
1010
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
1111
import { DOCS_URL } from 'lib/constants'
1212
import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state'
13+
import { useSidebarManagerSnapshot } from 'state/sidebar-manager-state'
1314
import {
1415
AiIconAnimation,
1516
Button,
@@ -21,7 +22,6 @@ import {
2122
Popover_Shadcn_,
2223
} from 'ui'
2324
import { SIDEBAR_KEYS } from '../LayoutSidebar/LayoutSidebarProvider'
24-
import { useSidebarManagerSnapshot } from 'state/sidebar-manager-state'
2525

2626
export const HelpPopover = () => {
2727
const router = useRouter()
@@ -102,7 +102,7 @@ export const HelpPopover = () => {
102102
)}
103103
<ButtonGroupItem size="tiny" icon={<Wrench strokeWidth={1.5} size={14} />} asChild>
104104
<a
105-
href={`${DOCS_URL}/guides/platform/troubleshooting`}
105+
href={`${DOCS_URL}/guides/troubleshooting?products=platform`}
106106
target="_blank"
107107
rel="noreferrer"
108108
>

0 commit comments

Comments
 (0)