* Create 2013 package * Create 2016 package * Add ews * Update package.json * Translate 2013 app to new structure * Translate 2013 app to new structure * Translate 2016 app to new structure * Add appId * Move setup to a seperate page * RHF dependency version mismatch * Move exchange 2016 setup to new page * Add translations * Relying on AppSetupMap not defined static pages * Console build fixes * Resolved node version to 16 * Prisma errors can't be handled on client * Fixes node version mismatches * Improvements * Endpoint fixes * Revert "Endpoint fixes" This reverts commit c0320e3f3d320091ee9a049e3abaf285169ed555. * Fixes Co-authored-by: Joe Au-Yeung <j.auyeung419@gmail.com> Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Leo Giovanetti <hello@leog.me>
19 lines
437 B
TypeScript
19 lines
437 B
TypeScript
import type { InstallAppButtonProps } from "@calcom/app-store/types";
|
|
|
|
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
|
|
|
export default function InstallAppButton(props: InstallAppButtonProps) {
|
|
const mutation = useAddAppMutation("exchange2013_calendar");
|
|
|
|
return (
|
|
<>
|
|
{props.render({
|
|
onClick() {
|
|
mutation.mutate("");
|
|
},
|
|
loading: mutation.isLoading,
|
|
})}
|
|
</>
|
|
);
|
|
}
|