* WIP * warnings and errors, and working app * Refresh token now usable * Correcting env.appStore.example * Reverting changes that will come from Sendgrid App PR * Resetting with main * Renaming all othercalendars * Fixing types * Renaming leftovers * More renaming stuff * Format readme * Adds prettier override for website wordlist * Omit salesforce app in this PR * Cleanup * Update AppSettings.tsx * Revert "Cleanup" This reverts commit 41f94c52c3a34ce8ae6047ce9d4c187722343d7e. * Update yarn.lock Co-authored-by: Leo Giovanetti <hello@leog.me> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
19 lines
439 B
TypeScript
19 lines
439 B
TypeScript
import type { InstallAppButtonProps } from "@calcom/app-store/types";
|
|
|
|
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
|
|
|
export default function InstallAppButton(props: InstallAppButtonProps) {
|
|
const mutation = useAddAppMutation("closecom_other_calendar");
|
|
|
|
return (
|
|
<>
|
|
{props.render({
|
|
onClick() {
|
|
mutation.mutate("");
|
|
},
|
|
loading: mutation.isLoading,
|
|
})}
|
|
</>
|
|
);
|
|
}
|