* feat: support lark calendar * New Crowdin translations by Github Action (#3016) Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> * fix: lark calendar get app ticket bugs * feat: add send msg service for lark bot * fix: comment on PR of lark-calendar * chore: update lark bot message * Refactors add endpoint * Adds missing GET endpoint handler * Update yarn.lock * fix: comments * Update yarn.lock * fix: comment about inferred type * Added fetcher helper * Update yarn.lock Co-authored-by: chengcheng.frontend <chengcheng.frontend@bytedance.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: zomars <zomars@me.com>
19 lines
429 B
TypeScript
19 lines
429 B
TypeScript
import type { InstallAppButtonProps } from "@calcom/app-store/types";
|
|
|
|
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
|
|
|
export default function InstallAppButton(props: InstallAppButtonProps) {
|
|
const mutation = useAddAppMutation("lark_calendar");
|
|
|
|
return (
|
|
<>
|
|
{props.render({
|
|
onClick() {
|
|
mutation.mutate("");
|
|
},
|
|
loading: mutation.isLoading,
|
|
})}
|
|
</>
|
|
);
|
|
}
|