 000785c29f
			
		
	
	
		000785c29f
		
	
	
	
	
		
			
			* Adds available apps * Adds App Model * WIP * Create meta mask app folder * Add description and images * Remove credential from installed apps page * Updates seeder script * Seeder fixes * lowercase categories * Upgrades prisma * WIP * WIP * Hopefully fixes circular deps * Type fixes * Fixes seeder * Adds migration to connect Credentials to Apps * Updates app store callbacks * Updates google credentials * Uses dirName from DB * Type fixes * Update reschedule.ts * Seeder fixes * Fixes categories listing * Update index.ts * Update schema.prisma * Updates dependencies * Renames giphy app * Uses dynamic imports for app metadata * Fixes credentials error * Uses dynamic import for api handlers * Dynamic import fixes * Allows for simple folder names in app store * Remove video adaptor * Squashes app migrations * seeder fixes * Renames to metamask * Updates metamask metadata * Fixes dyamic imports * Remove comments * Create migration.sql Co-authored-by: zomars <zomars@me.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com>
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			469 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			469 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import useAddAppMutation from "../../_utils/useAddAppMutation";
 | |
| import { InstallAppButtonProps } from "../../types";
 | |
| 
 | |
| export default function InstallAppButton(props: InstallAppButtonProps) {
 | |
|   // @ts-ignore TODO: deprecate App types in favor of DB slugs
 | |
|   const mutation = useAddAppMutation("metamask");
 | |
| 
 | |
|   return (
 | |
|     <>
 | |
|       {props.render({
 | |
|         onClick() {
 | |
|           mutation.mutate("");
 | |
|         },
 | |
|         loading: mutation.isLoading,
 | |
|       })}
 | |
|     </>
 | |
|   );
 | |
| }
 |