feat(web): add per-integration enable/disable toggle (#2364)
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
|
||||
import { DraftedIntegrationEnabledControl } from "@/components/integrations/drafted-integration-enabled-control";
|
||||
import { useGitLabEnabled } from "@/hooks/domains/gitlab/use-gitlab-enabled";
|
||||
|
||||
/** Enable/disable slider for the GitLab integration, wired to `useGitLabEnabled`. */
|
||||
export function GitLabEnabledControl() {
|
||||
const { enabled, setEnabled } = useGitLabEnabled();
|
||||
return (
|
||||
<DraftedIntegrationEnabledControl
|
||||
id="gitlab"
|
||||
name="GitLab"
|
||||
enabled={enabled}
|
||||
persist={setEnabled}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user