feat(settings): improve workspace sidebar navigation (#1643)
This commit is contained in:
@@ -2,7 +2,13 @@ import { GitHubIntegrationPage } from "@/components/github/github-settings";
|
||||
import { StateHydrator } from "@/components/state-hydrator";
|
||||
import { fetchGitHubStatus } from "@/lib/api/domains/github-api";
|
||||
|
||||
export default async function IntegrationsGitHubPage() {
|
||||
type IntegrationsGitHubPageProps = {
|
||||
workspaceId?: string;
|
||||
};
|
||||
|
||||
export default async function IntegrationsGitHubPage({
|
||||
workspaceId,
|
||||
}: IntegrationsGitHubPageProps = {}) {
|
||||
const status = await fetchGitHubStatus({ cache: "no-store" }).catch(() => null);
|
||||
const initialState = status
|
||||
? {
|
||||
@@ -16,7 +22,7 @@ export default async function IntegrationsGitHubPage() {
|
||||
return (
|
||||
<>
|
||||
<StateHydrator initialState={initialState} />
|
||||
<GitHubIntegrationPage />
|
||||
<GitHubIntegrationPage workspaceId={workspaceId} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user