Add MS Teams install button (#2362)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
		
							parent
							
								
									3fc49a8cee
								
							
						
					
					
						commit
						9bbaf1a7fa
					
				
					 3 changed files with 20 additions and 0 deletions
				
			
		|  | @ -17,6 +17,7 @@ export const InstallAppButtonMap = { | |||
|   stripepayment: dynamic(() => import("./stripepayment/components/InstallAppButton")), | ||||
|   tandemvideo: dynamic(() => import("./tandemvideo/components/InstallAppButton")), | ||||
|   zoomvideo: dynamic(() => import("./zoomvideo/components/InstallAppButton")), | ||||
|   office365video: dynamic(() => import("./office365video/components/InstallAppButton")), | ||||
| }; | ||||
| 
 | ||||
| export const InstallAppButton = ( | ||||
|  |  | |||
|  | @ -0,0 +1,18 @@ | |||
| import type { InstallAppButtonProps } from "@calcom/app-store/types"; | ||||
| 
 | ||||
| import useAddAppMutation from "../../_utils/useAddAppMutation"; | ||||
| 
 | ||||
| export default function InstallAppButton(props: InstallAppButtonProps) { | ||||
|   const mutation = useAddAppMutation("office365_video"); | ||||
| 
 | ||||
|   return ( | ||||
|     <> | ||||
|       {props.render({ | ||||
|         onClick() { | ||||
|           mutation.mutate(""); | ||||
|         }, | ||||
|         loading: mutation.isLoading, | ||||
|       })} | ||||
|     </> | ||||
|   ); | ||||
| } | ||||
							
								
								
									
										1
									
								
								packages/app-store/office365video/components/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								packages/app-store/office365video/components/index.ts
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| export { default as InstallAppButton } from "./InstallAppButton"; | ||||
		Loading…
	
		Reference in a new issue
	
	 Joe Au-Yeung
						Joe Au-Yeung