feat: Integrate Zapier App Directory

This commit is contained in:
Tom Moor
2022-11-14 18:10:10 -05:00
parent 1e723be556
commit 4047ec73bb
4 changed files with 45 additions and 17 deletions

View File

@@ -1,32 +1,49 @@
import * as React from "react";
import { useTranslation, Trans } from "react-i18next";
import Button from "~/components/Button";
import { Helmet } from "react-helmet";
import { Trans } from "react-i18next";
import Heading from "~/components/Heading";
import Scene from "~/components/Scene";
import Text from "~/components/Text";
import ZapierIcon from "~/components/ZapierIcon";
import useStores from "~/hooks/useStores";
function Zapier() {
const { t } = useTranslation();
const { ui } = useStores();
const { resolvedTheme } = ui;
return (
<Scene title="Zapier" icon={<ZapierIcon color="currentColor" />}>
<Heading>Zapier</Heading>
<Helmet>
<script
type="module"
src="https://cdn.zapier.com/packages/partner-sdk/v0/zapier-elements/zapier-elements.esm.js"
key="zapier-js"
></script>
<link
rel="stylesheet"
href="https://cdn.zapier.com/packages/partner-sdk/v0/zapier-elements/zapier-elements.css"
key="zapier-styles"
/>
</Helmet>
<Text type="secondary">
<Trans>
Zapier is a platform that allows Outline to easily integrate with
thousands of other business tools. Head over to Zapier to setup a
"Zap" and start programmatically interacting with Outline.'
thousands of other business tools. Automate your workflows, sync data,
and more.
</Trans>
</Text>
<p>
<Button
onClick={() =>
(window.location.href = "https://zapier.com/apps/outline")
}
>
{t("Open Zapier")}
</Button>
</p>
<br />
<zapier-app-directory
app="outline"
link-target="new-tab"
theme={resolvedTheme}
hide="notion,confluence-cloud,confluence,google-docs,slack"
applimit={6}
introcopy="hide"
create-without-template="show"
use-this-zap="show"
/>
</Scene>
);
}