Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

640 B
Raw Blame
import { useTranslation } from "react-i18next";
import { GithubIcon } from "@/components/icons/github-icon";
import { useLinkGithubAccount } from "@/components/project/github-integration/use-link-github-account";
import { Button } from "@/components/ui/button";

export function GithubLinkAccountButton() {
  const { t } = useTranslation();
  const { link, linking } = useLinkGithubAccount();

  return (
    <Button
      type="button"
      variant="outline"
      size="sm"
      loading={linking}
      onClick={link}
    >
      <GithubIcon aria-hidden="true" />
      {t("settings:githubIntegration.linkGithub")}
    </Button>
  );
}