mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
* OAuth * store logo * unfurl support * refresh token * support for list * embed list * mention menu for all embeds in a list * multi-level list * logo * account level connection * tsc * Update Icon.tsx * coderabbit feedback * RFC 6749 suggestion --------- Co-authored-by: Tom Moor <tom@getoutline.com>
24 lines
629 B
TypeScript
24 lines
629 B
TypeScript
import * as React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import Button, { type Props } from "~/components/Button";
|
|
import useCurrentTeam from "~/hooks/useCurrentTeam";
|
|
import { redirectTo } from "~/utils/urls";
|
|
import { FigmaUtils } from "../../shared/FigmaUtils";
|
|
|
|
export function FigmaConnectButton(props: Props<HTMLButtonElement>) {
|
|
const { t } = useTranslation();
|
|
const team = useCurrentTeam();
|
|
|
|
return (
|
|
<Button
|
|
onClick={() =>
|
|
redirectTo(FigmaUtils.authUrl({ state: { teamId: team.id } }))
|
|
}
|
|
neutral
|
|
{...props}
|
|
>
|
|
{t("Connect")}
|
|
</Button>
|
|
);
|
|
}
|